sound: correct playback length on NTSC and PAL

This commit is contained in:
SoapyMan 2024-09-23 18:22:33 +05:00
parent 863034e0ea
commit f3c2c2a0b6

View File

@ -471,7 +471,11 @@ int CompleteSoundSetup(int channel, int bank, int sample, int pitch, int proximi
samp = &samples[bank][sample]; samp = &samples[bank][sample];
rate = samp->samplerate * pitch; rate = samp->samplerate * pitch;
#ifdef PAL_VERSION
bpf = (rate / 4096) / 50; bpf = (rate / 4096) / 50;
#else
bpf = (rate / 4096) / 60;
#endif
if (bpf == 0) if (bpf == 0)
{ {