Music volume
Posted: Mon Jun 27, 2011 6:46 pm
Since I made an account for my other problem, I may as well mention the other issue I've noticed.
If you turn the music volume down to 0% it still plays. It is barely audible most of the time but there are some tracks with bits like a bell that stick out. If I turn the volume all the way up on my system it is clear what is going on. This is on a Mac if it makes any difference.
It may be related to the way volume is controlled. Hitting left seems to take the volume down close to 6% and tight turns it up about 4% but this seems to be an approximation. Also, if you are at a reported 6% you can't turn it down an farther without turning it up a bit first. Looking at the music config file it appears to go down to a value of 1 and no farther. Changing that to 0 fixed the background music.
I don't know Lua but I had a peep at the code in SoundMusic.lua. I don't understand why the volume up seems to be less than volume down, since it looks like it should just add or subtract a value of 5. In any case it seems to let you turn the sound all the way down if you substitute
where it previously just said "game:volumeMusic(game:volumeMusic() + v)". Again, this is literally the first time I've touched anything with Lua so it may not be a good solution but it works for me.
If you turn the music volume down to 0% it still plays. It is barely audible most of the time but there are some tracks with bits like a bell that stick out. If I turn the volume all the way up on my system it is clear what is going on. This is on a Mac if it makes any difference.
It may be related to the way volume is controlled. Hitting left seems to take the volume down close to 6% and tight turns it up about 4% but this seems to be an approximation. Also, if you are at a reported 6% you can't turn it down an farther without turning it up a bit first. Looking at the music config file it appears to go down to a value of 1 and no farther. Changing that to 0 fixed the background music.
I don't know Lua but I had a peep at the code in SoundMusic.lua. I don't understand why the volume up seems to be less than volume down, since it looks like it should just add or subtract a value of 5. In any case it seems to let you turn the sound all the way down if you substitute
Code: Select all
if game:volumeMusic() < 5 and v == -5 then
game:volumeMusic(0)
else
game:volumeMusic(game:volumeMusic() + v)
end