The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.
SDL
Simple Directmedia Layer Forums
SDL Mixer : volume changes - how do they work?
djkarstenv
Joined: 29 Sep 2011
Posts: 34
Posted: Thu Aug 02, 2012 8:57 am
Hi,
I have made a game, whereby the music plays in the background and some sound effects play when the mouse hovers over certain sprites. I noticed some change in sound volumes during this and I have some queries :
1. Does the sound effect volume (Mix_Chunk) decrease automatically when the music (Mix_Music) plays?
2. When the music is off, why does the sound effect (Mix_Chunk) automatically increase in volume everytime I hover over a sprite? The more I move over sprites, the more the sound effect plays (as it should) and the louder the effect gets each time. Is this supposed to happen?