From bbe3dd9a7a3fc0f17a6ab61c70d9ea95962915df Mon Sep 17 00:00:00 2001 From: Rui Date: Thu, 15 Jun 2017 00:21:08 +0900 Subject: Fix no sound bug (#5968) --- src/sound_openal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sound_openal.cpp') diff --git a/src/sound_openal.cpp b/src/sound_openal.cpp index 0b53572c4..1772ee817 100644 --- a/src/sound_openal.cpp +++ b/src/sound_openal.cpp @@ -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); -- cgit v1.2.3