[sdlsound] need help putting it all together (sdl_sound,sdl_m ixer,physfs)

Eric Wing ewing2121 at yahoo.com
Sun Dec 8 00:52:50 EST 2002

> It's possible that the OGG decoder is incorrectly
> reporting this when it
> could fill the buffer more, and since playsound just
> calls Sound_Decode()
> in a loop, we never noticed.

Thanks for the info. I tracked down the problem and it
is in the decoder. Apparently, according to the Vorbis
documentation, ov_read() will only return up to one
decoded packet at a time which is almost always less
than the amount of data you request.

I have fixed this issue. Would you like me to send you
a patch? 

Also, I added the quick fix that Torbjörn Andersson
suggested about the problem with the MikMod
double-initialization infinite loop. It seems to work
now as I can get SDL_mixer and SDL_sound to work
together while still having Mikmod compiled in both. 

One interesting tidbit though, if Mods are played both
through SDL_mixer (native) and SDL_sound (decoded by
and passed raw to mixer) and at the same time, all but
one stop playing and the remaining one plays at a very
fast speed. Then the cutoff mod seems to restart at
normal speed after the other finishes. Quite strange.


Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

More information about the sdlsound mailing list