SDL_mixer - panning audio channels

Hi All,

I am unable to locate any documentation in the SDL_mixer API with
regards to how panning of a sample or a channel arbitrarily from left to
right speaker is done - alternatively, setting an individual volume for
left and right speaker.

Surely there must be a simple way I have overlooked?

Regards
Anders

I am unable to locate any documentation in the SDL_mixer API with
regards to how panning of a sample or a channel arbitrarily from left to
right speaker is done - alternatively, setting an individual volume for
left and right speaker.

Surely there must be a simple way I have overlooked?

It’s very well documented in SDL_mixer.h. :slight_smile:

Mix_SetPanning()
or
Mix_SetPosition()
or
Mix_SetDistance()

You need to use the CVS version of SDL_mixer (I think) for these functions
to be available.

–ryan.