1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix no sound bug (#5968)

This commit is contained in:
Rui 2017-06-15 00:21:08 +09:00 committed by Loïc Blot
parent ddcd026344
commit bbe3dd9a7a
2 changed files with 14 additions and 8 deletions

View file

@ -576,7 +576,7 @@ public:
}
int handle = -1;
if (fade > 0) {
handle = playSoundRaw(buf, loop, 0.0f, 0.0f);
handle = playSoundRaw(buf, loop, 0.0f, pitch);
fadeSound(handle, fade, volume);
} else {
handle = playSoundRaw(buf, loop, volume, pitch);