[SDL] SDL_mixer question
Kostas Kostiadis
kos at climaxgroup.com
Thu Jan 4 08:32:56 PST 2007
Hello all,
I've recently started looking at SDL_mixer stuff and I have some
questions...
The docs mention that "music is not played on a normal mixer channel".
Q1)
Does that mean I can only have 1 "music" playing at any one time?
i.e. I can only do Mix_LoadMUS and Mix_PlayMusic for a single file...
If I need to play a different music file, I need to Mix_HaltMusic and
Mix_FreeMusic, and then start over (with load and play)
Q2)
Assuming I have my background music playing...say I need to play some SFX at
the same time...
Is this done using the Mix_LoadWAV and then the Channel family of functions
(i.e. Mix_AllocateChannels, Mix_PlayChannel, etc.)?
Q3)
I'm guessing to start off with I don't need to worry about effects, right?
I can just use the build-in processors for now (if needed).
thx in advance,
K.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070104/fc140cad/attachment.html
More information about the SDL
mailing list