[SDL] negative surface values

Chris Thielen chris at luethy.net
Mon Jul 22 22:15:01 PDT 2002


> SDL_Mixer deals with its own Mix_Chunk structure for the sounds it plays, so
> I assume you can't just hand off a Sound_Sample to it.

You will be able to in the next version of SDL_mixer.

In the meantime, you can use Sound_DecodeAll() to get a complete waveform
and then create a Mix_Chunk from it. This is not ideal, since something
like an MP3 can eat a lot of memory when fully decoded.

--ryan.







More information about the SDL mailing list