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:
parent
ddcd026344
commit
bbe3dd9a7a
2 changed files with 14 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue