From 1103063ed6d5edfe31dce68d8e17ccb2d71d9a15 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 27 Dec 2024 16:10:51 +0100 Subject: [PATCH] fixed bug with sounds not being played in native BD sound engine This fixes a bug where sounds (when using the native BD sound engine) were not played because other sounds with higher precedence were already playing. However, this should only be true for two sounds to be played at the same time, while a sound with lower precedence may be played if another sound with higher precedence is already playing for some time. --- src/game_bd/bd_sound.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game_bd/bd_sound.c b/src/game_bd/bd_sound.c index 37abc49b..7849e685 100644 --- a/src/game_bd/bd_sound.c +++ b/src/game_bd/bd_sound.c @@ -408,9 +408,8 @@ static void play_sounds(GdSound sound1, GdSound sound2, GdSound sound3) // CHANNEL 1 is for small sounds if (sound1 != GD_S_NONE) { - // start new sound if higher or same precedence than the one currently playing - if (gd_sound_get_precedence(sound1) >= gd_sound_get_precedence(sound_playing(1))) - play_sound(1, sound1); + // start new sound + play_sound(1, sound1); } else { -- 2.34.1