Music distortion

Music distortion

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Music distortion

Post 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
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Music distortion

Post 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).
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Music distortion

Post 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.
Post Reply

Return to “Help & Bugs”