From f3c2c2a0b6231d236c71e18362b7fc74a3339335 Mon Sep 17 00:00:00 2001 From: SoapyMan Date: Mon, 23 Sep 2024 18:22:33 +0500 Subject: [PATCH] sound: correct playback length on NTSC and PAL --- src_rebuild/Game/C/sound.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src_rebuild/Game/C/sound.c b/src_rebuild/Game/C/sound.c index 1efa403a..42724cb8 100644 --- a/src_rebuild/Game/C/sound.c +++ b/src_rebuild/Game/C/sound.c @@ -471,7 +471,11 @@ int CompleteSoundSetup(int channel, int bank, int sample, int pitch, int proximi samp = &samples[bank][sample]; rate = samp->samplerate * pitch; +#ifdef PAL_VERSION bpf = (rate / 4096) / 50; +#else + bpf = (rate / 4096) / 60; +#endif if (bpf == 0) {