Sound volume in SDL

Hello,

I can’t find function in SDL for setting sound volume. Is there any?

Thanks,
Marek

I can’t find function in SDL for setting sound volume. Is there any?

No, but it’s easy enough to change it in the sound data you’re passing to
your audio callback. Alternately, you can look at using SDL_mixer to do it
for you, but that might be a bit much for just changing the volume.

–ryan.

I can’t find function in SDL for setting sound volume. Is there any?

No, but it’s easy enough to change it in the sound data you’re passing to
your audio callback. Alternately, you can look at using SDL_mixer to do it
for you, but that might be a bit much for just changing the volume.

Not that it’s a good idea for a game or other non-system app to change
system volume, but wouldn’t it be acceptable to have some -real- mixer
support in SDL someday?

I know that system volume is controllable on pretty much all platforms
SDL-audio supports - except ouput-file of course g

Could be a bad precedent though - and perhaps not something to include,
for security reasons if nothing else :slight_smile:
(except that under linux it isn’t always possible to minimize a fullscreen
app…)

G’day, eh? :slight_smile:
- TeunisOn Sun, 21 Oct 2001, Ryan C. Gordon wrote: