mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-25 03:42:34 +01:00
sound: correct playback length on NTSC and PAL
This commit is contained in:
parent
863034e0ea
commit
f3c2c2a0b6
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user