[SDL] Mix_LoadMUS only works once

redshadow urpo_elukka_99 at hotmail.com
Fri Nov 20 09:56:48 PST 2009


Hello

OS: Windows Vista
Dev: Microsoft Visual C++ 6.0

I'm using the newest SDL & SDL_ttf & SDL_image & SDL_mixer libs.
My problem is that if I load something to Mix_Music with Mix_LoadMUS, it works just fine. But when I Mix_FreeMusic and try to Mix_LoadMUS again to the same Mix_Music with same file, it doesn't work.
Mix_GetError() gives me "Couldn't read from '' ".

Same code works just perfectly in linux.
I've checked mixer's source and fopen or fread seems to be where it fails.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20091120/a7883019/attachment.htm>


More information about the SDL mailing list