Modernize client code (#6250)
[oweals/minetest.git] / src / sound_openal.cpp
index 0b53572c428b645a8d87e7c3798db8f1959a88d7..1772ee817f8fc81e8675215ea9421d280ab1da5e 100644 (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);