X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsound.c;h=adfb8147f8cb3f19076a8cd87e32eb9c5997d9a9;hb=6e022fe74edcab8e9b6be32bcfdd7006f478e2ab;hp=83abf606718bc956f52f7002e7f86b998e9d0720;hpb=d6a1a6cb31174ac804f9ad54a919d65478da588f;p=rocksndiamonds.git diff --git a/src/libgame/sound.c b/src/libgame/sound.c index 83abf606..adfb8147 100644 --- a/src/libgame/sound.c +++ b/src/libgame/sound.c @@ -2190,21 +2190,33 @@ void PlayMusic(int nr) void PlaySound(int nr) { + if (!setup.sound_simple) + return; + PlaySoundExt(nr, SOUND_MAX_VOLUME, SOUND_MIDDLE, SND_CTRL_PLAY_SOUND); } void PlaySoundStereo(int nr, int stereo_position) { + if (!setup.sound_simple) + return; + PlaySoundExt(nr, SOUND_MAX_VOLUME, stereo_position, SND_CTRL_PLAY_SOUND); } void PlaySoundLoop(int nr) { + if (!setup.sound_loops) + return; + PlaySoundExt(nr, SOUND_MAX_VOLUME, SOUND_MIDDLE, SND_CTRL_PLAY_LOOP); } void PlaySoundMusic(int nr) { + if (!setup.sound_music) + return; + PlaySoundExt(nr, SOUND_MAX_VOLUME, SOUND_MIDDLE, SND_CTRL_PLAY_MUSIC); }