From 0bfa90b5bee80431db7b85ac7513c8415b5070c1 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 30 Nov 2006 07:38:54 +0000 Subject: [PATCH] add screen-specific start sound --- .../Themes/default/Sounds/ScreenSelectMusic start.redir | 1 + stepmania/src/ScreenSelectMusic.cpp | 5 +++-- stepmania/src/ScreenSelectMusic.h | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 stepmania/Themes/default/Sounds/ScreenSelectMusic start.redir diff --git a/stepmania/Themes/default/Sounds/ScreenSelectMusic start.redir b/stepmania/Themes/default/Sounds/ScreenSelectMusic start.redir new file mode 100644 index 0000000000..38275831fb --- /dev/null +++ b/stepmania/Themes/default/Sounds/ScreenSelectMusic start.redir @@ -0,0 +1 @@ +common start diff --git a/stepmania/src/ScreenSelectMusic.cpp b/stepmania/src/ScreenSelectMusic.cpp index d869b1952d..2d05f1a06a 100644 --- a/stepmania/src/ScreenSelectMusic.cpp +++ b/stepmania/src/ScreenSelectMusic.cpp @@ -146,6 +146,7 @@ void ScreenSelectMusic::Init() this->AddChild( &m_textHighScore[p] ); } + m_soundStart.Load( THEME->GetPathS(m_sName,"start") ); m_soundDifficultyEasier.Load( THEME->GetPathS(m_sName,"difficulty easier") ); m_soundDifficultyHarder.Load( THEME->GetPathS(m_sName,"difficulty harder") ); m_soundOptionsChange.Load( THEME->GetPathS(m_sName,"options") ); @@ -306,7 +307,7 @@ void ScreenSelectMusic::Input( const InputEventPlus &input ) } m_bGoToOptions = true; - SCREENMAN->PlayStartSound(); + m_soundStart.Play(); this->PlayCommand( "ShowEnteringOptions" ); // Re-queue SM_BeginFadingOut, since ShowEnteringOptions may have @@ -698,7 +699,7 @@ void ScreenSelectMusic::MenuStart( const InputEventPlus &input ) m_bMadeChoice = true; - SCREENMAN->PlayStartSound(); + m_soundStart.Play(); /* If we're currently waiting on song assets, abort all except the music and * start the music, so if we make a choice quickly before background requests diff --git a/stepmania/src/ScreenSelectMusic.h b/stepmania/src/ScreenSelectMusic.h index 9d8194fc2b..f077af114d 100644 --- a/stepmania/src/ScreenSelectMusic.h +++ b/stepmania/src/ScreenSelectMusic.h @@ -88,6 +88,7 @@ protected: bool m_bAllowOptionsMenu, m_bAllowOptionsMenuRepeat; bool m_bSelectIsDown; + RageSound m_soundStart; RageSound m_soundDifficultyEasier; RageSound m_soundDifficultyHarder; RageSound m_soundOptionsChange;