[SDL] SDL_mixer and panning
marvin at dataway.ch
Sun Mar 18 07:39:02 PST 2001
Rainer Deyke <root at rainerdeyke.com> schrieb am 17 Mar 2001:
> Is there any way to control per-channel panning in SDL_mixer?
There's a patch at http://www.gltron.org/stuff/SDL_panning.tar.gz
You need to patch both SDL and SDL_mixer (but the changes are small).
Use Mix_Volume_R(voice, volume) and Mix_Volume_L(voice, volume)
to controll the panning (see example in the .tar.gz from above) of
a SDL_mixer voice.
While we're at it, there has been some confusion on the terms
channel/voice on IRC today (yes, there is a IRC channel, it's #sdl on
irc.openprojects.net, and it's been active for over a year now).
Generally, people tend to think of Voices, devided into two (or four)
channels (left/right, rear left/right).
For the next major revision of SDL_mixer (will there be one?), we might
consider changing all references to 'channel' to 'voice'.
Check out my 3D lightcycle game: http://www.gltron.org
More than 100'000 Downloads of the last version (0.59)
More information about the SDL