[SDL] SDL_mixer question

Peter Mulholland darkmatter at freeuk.com
Thu Jan 4 10:36:33 PST 2007


Hello Kostas,

Thursday, January 4, 2007, 4:32:56 PM, you wrote:

> 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)

Yes

> 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.)?

Yes

> 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).

Yes :)

-- 
Best regards,
 Peter                            mailto:darkmatter at freeuk.com





More information about the SDL mailing list