I’m looking for some help in getting sdl_mixer to play wav files. I’ve
spented some time trying to figure out what the problem might be but
haven’t a clue on what’s wrong still.
I downloaded sdl_mixer from cvs and built it under bcc since the
precompiled binary doesn’t play mp3. Here’s the macros that’s defined
Now I’ve gotten .ogg and mp3 files to play fine but .wav and .mid can’t
seem to play. For midi files the window opens but I don’t hear anything.
As for trying to play wav files it results in a crash w/ fault coming
from SDL.dll. I’ve built SDL myself too and everything else seems to work
fine for it. I got sdl_image to work flawlessly btw.
The stacktrace when I ran it through the debug:
2812 Stopped First chance exception
:003543cc ; F:\myworkspace\demos\Bin\SDL.DLL
:00352b04 ; F:\myworkspace\demos\Bin\SDL.DLL
:00328bbd SDL._SDL_GetAppState + 0xfd
:00326d63 SDL._SDL_ReadLE32 + 0x13
:00427F09 LoadWAVStream(file=:0044B1F2, spec=:0012FE6C,
:00427B42 WAVStream_LoadSong(file=:0044B1F2, magic=:0012FEA8)
:00401532 SDL_main(argc=1, argv=:0012FF38)
:0040C51B console_main(argc=1, argv=:0012FF38)
:0040C6EF WinMain(hInst=:00400000, hPrev=NULL, szCmdLine=:00141F06, sw=
:0040a56f ; __startup
Anyone have any idea why *.wav files causes a crash but mp3 and ogg seems
to play fine? I’m really stumped with this problem. Please help!