You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SDL 3.2 simple-playback.c from examples directory
To test it I just added this code after stream creation
if (!SDL_SetAudioStreamGain(stream, 0.0f))
{
return SDL_APP_FAILURE;
}
It returns true and SDL_GetAudioStreamGain returns 0, but I still can hear sine wave at full volume
Debian 12, tried with SDL_AUDIODRIVER=alsa , SDL_AUDIODRIVER=pulseaudio and SDL_AUDIODRIVER=pipewire
The text was updated successfully, but these errors were encountered:
Tsukulimer
changed the title
SDL_SetAudioStreamGain doesn't actually change stream's volume (SDL 3.2)
SDL_SetAudioStreamGain sets stream's gain, but SDL doesn't take it into account (SDL 3.2)
Jan 26, 2025
Lyris the Kitori — Today at 11:07 PM
yeah im digging through the SDL source code and im not sure why gain would be applied inconsistently the actual gain it's using is always correct but it's sometimes applied twice, and sometimes applied not at all (which was the original issue i noticed with a 44100 audio -> 48000 device conversion)
SDL 3.2 simple-playback.c from examples directory
To test it I just added this code after stream creation
It returns true and SDL_GetAudioStreamGain returns 0, but I still can hear sine wave at full volume
Debian 12, tried with SDL_AUDIODRIVER=alsa , SDL_AUDIODRIVER=pulseaudio and SDL_AUDIODRIVER=pipewire
The text was updated successfully, but these errors were encountered: