From: Holger Schemel Date: Fri, 27 Dec 2024 15:10:51 +0000 (+0100) Subject: fixed bug with sounds not being played in native BD sound engine X-Git-Tag: 4.4.0.1~72 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1103063ed6d5edfe31dce68d8e17ccb2d71d9a15;p=rocksndiamonds.git 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. --- 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 {