PlayStartSound, etc. always play at PREFS sound volume

This commit is contained in:
Glenn Maynard
2004-03-25 21:41:11 +00:00
parent c98579d478
commit 1588f118a9
2 changed files with 32 additions and 4 deletions
+28
View File
@@ -719,3 +719,31 @@ void ScreenManager::ReloadCreditsText()
m_SystemLayer->ReloadCreditsText();
}
/* Always play these sounds, even if we're in a silent attract loop. */
void ScreenManager::PlayStartSound()
{
RageSoundParams p;
p.m_Volume = PREFSMAN->m_fSoundVolume;
m_soundStart.Play( &p );
}
void ScreenManager::PlayCoinSound()
{
RageSoundParams p;
p.m_Volume = PREFSMAN->m_fSoundVolume;
m_soundCoin.Play( &p );
}
void ScreenManager::PlayInvalidSound()
{
RageSoundParams p;
p.m_Volume = PREFSMAN->m_fSoundVolume;
m_soundInvalid.Play( &p );
}
void ScreenManager::PlayScreenshotSound()
{
RageSoundParams p;
p.m_Volume = PREFSMAN->m_fSoundVolume;
m_soundScreenshot.Play( &p );
}