Music volume

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
eliterrell
Posts: 3
Joined: Mon Jun 27, 2011 5:41 pm

Music volume

#1 Post by eliterrell »

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

Code: Select all

		if game:volumeMusic() < 5 and v == -5 then
			game:volumeMusic(0)
		else
			game:volumeMusic(game:volumeMusic() + v)
		end
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.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Music volume

#2 Post by darkgod »

The audio system has been rewritten for b29 anyway :) it's fixed
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply