mute before starting the sound. Fixes little pops.
This commit is contained in:
@@ -589,11 +589,11 @@ void RageSound::StartPlaying()
|
|||||||
|
|
||||||
m_bPlaying = true;
|
m_bPlaying = true;
|
||||||
|
|
||||||
SOUNDMAN->StartMixing( this );
|
|
||||||
|
|
||||||
if( !m_Param.m_bIsCriticalSound && SOUNDMAN->GetPlayOnlyCriticalSounds() )
|
if( !m_Param.m_bIsCriticalSound && SOUNDMAN->GetPlayOnlyCriticalSounds() )
|
||||||
m_Param.m_Volume = 0;
|
m_Param.m_Volume = 0;
|
||||||
|
|
||||||
|
SOUNDMAN->StartMixing( this );
|
||||||
|
|
||||||
// LOG->Trace("StartPlaying %p finished (%s)", this, this->GetLoadedFilePath().c_str());
|
// LOG->Trace("StartPlaying %p finished (%s)", this, this->GetLoadedFilePath().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user