SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Set gain value in audio streams

Open luppichristian opened this issue 1 year ago • 1 comments

Hello, I think it would be useful to set a gain value per audio stream that can be modified dynamically like frequency ratio. Not sure if this is not implemented for a reason but I would like to ask.

int SDL_SetAudioStreamGainRatio(SDL_AudioStream* stream, float ratio);

float SDL_GetAudioStreamGainRatio(SDL_AudioStream* stream);

Thanks

luppichristian avatar Jun 14 '24 16:06 luppichristian

I think we were just trying to find a point to stop adding features, but this would be useful and (probably) not difficult.

icculus avatar Jun 15 '24 05:06 icculus