play cancel sound when using CancelTransitionsOut, not start sound

This commit is contained in:
Chris Danford
2006-03-08 23:58:37 +00:00
parent 7ec7a906c3
commit 58a6402201
5 changed files with 12 additions and 3 deletions
+8
View File
@@ -256,6 +256,7 @@ void ScreenManager::ThemeChanged()
// reload common sounds
m_soundStart.Load( THEME->GetPathS("Common","start") );
m_soundCoin.Load( THEME->GetPathS("Common","coin"), true );
m_soundCancel.Load( THEME->GetPathS("Common","cancel"), true );
m_soundInvalid.Load( THEME->GetPathS("Common","invalid") );
m_soundScreenshot.Load( THEME->GetPathS("Common","screenshot") );
@@ -852,6 +853,13 @@ void ScreenManager::PlayCoinSound()
m_soundCoin.Play( &p );
}
void ScreenManager::PlayCancelSound()
{
RageSoundParams p;
p.m_bIsCriticalSound = true;
m_soundCancel.Play( &p );
}
void ScreenManager::PlayScreenshotSound()
{
RageSoundParams p;