table of contents
- experimental 3.1~git20250910~d032535+ds-1
MIX_StereoGains(3type) | SDL_mixer3 DATATYPES | MIX_StereoGains(3type) |
NAME¶
MIX_StereoGains - A set of per-channel gains for tracks using MIX_SetTrackStereo ().
HEADER FILE¶
Defined in SDL3_mixer/SDL_mixer.h
SYNOPSIS¶
#include "SDL3_mixer/SDL_mixer.h"
typedef struct MIX_StereoGains { float left; /**< left channel gain */ float right; /**< right channel gain */ } MIX_StereoGains;
DESCRIPTION¶
When forcing a track to stereo, the app can specify a per-channel gain, to further adjust the left or right outputs.
When mixing audio that has been forced to stereo, each channel is modulated by these values. A value of 1.0f produces no change, 0.0f produces silence.
A simple panning effect would be to set left to the desired value and right to 1.0f-left .
AVAILABILITY¶
This struct is available since SDL_mixer 3.0.0.
SEE ALSO¶
•(3), MIX_SetTrackStereo(3)
SDL_mixer 3.1.0 | SDL_mixer |