[SDL] sdl_mixer: How to Mix Music To a Buffer Without Playing?

Torsten Giebl wizard at syntheticsw.com
Fri Aug 11 00:47:11 PDT 2006


Hello !


> I'd like to load a bunch of mods and then convert them to Mix_Chunks to
> use them as sound effects.
>
> Is there any way to mix a Mix_Music to a buffer without actually playing
> it?
>
> At present I'm manually converting the mods to samples and loading them
> in from disk. It seems a shame to do this when they could instead be
> stored in their original (tiny) format and mixed on loading.


At the moment this is not possible. Both SDL_mixer and MikMod do
not support converting the next nr. of milliseconds into a buffer.


CU





More information about the SDL mailing list