Move MSS crash fix to 3D sounds only

This commit is contained in:
Sergeanur
2021-09-21 10:56:29 +03:00
parent 7534b0b854
commit 39eb332c12
+3 -3
View File
@@ -2025,9 +2025,6 @@ cSampleManager::SetChannelPan(uint32 nChannel, uint32 nPan)
void
cSampleManager::SetChannelFrequency(uint32 nChannel, uint32 nFreq)
{
#ifdef FIX_BUGS
if (nFreq == 0) nFreq = 1;
#endif
#ifdef EXTERNAL_3D_SOUND
bool8 b2d = FALSE;
@@ -2049,6 +2046,9 @@ cSampleManager::SetChannelFrequency(uint32 nChannel, uint32 nFreq)
}
else
{
#ifdef FIX_BUGS
if (nFreq == 0) nFreq = 1;
#endif
if ( opened_samples[nChannel] )
AIL_set_3D_sample_playback_rate(opened_samples[nChannel], nFreq);
}