Page 1 of 1

Music distortion

Posted: 13 Jun 2015, 07:43
by Google_Frog
There is a rare bug in ZK where the music occasionally plays slower than normal. It also has a noticeably lower pitch. I heard about a 'feature' which changes sound speed based on game speed. This might be a culprit and I would like to turn it off. There may also be a bug with Spring.PlaySoundStream and I do not know why the widget uses that callin than Spring.PlaySoundFile.

Do these sounds require an entry in sounds.lua? They have an entry with these settings:

Code: Select all

dopplerscale = 0
	in3d = false

Re: Music distortion

Posted: 13 Jun 2015, 08:22
by Forboding Angel
Fixed music widget: https://github.com/EvolutionRTS/Evoluti ... _music.lua

Perhaps you can compare and figure out what the deal is (cause I honestly dunno what causes it)? I mentioned this on the zk forums a long time ago as well (that evo had a fixed music widget).

Re: Music distortion

Posted: 13 Jun 2015, 09:19
by Google_Frog
Here is the ZK music widget: https://github.com/ZeroK-RTS/Zero-K/blo ... _music.lua

There is no significant difference between the Evo and the ZK widgets regarding how they use Spring.PlaySoundStream. I don't think this is a widget bug although if it is then there is something unclear in the engine. I think there is either an engine bug but the bug is rare and there are many places that my configuration could fail. That is why the thread is here instead of the lua subforum.