From cfd4a0311030a3dae8bc286abdd16ad68c076afe Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 18 Mar 2005 21:51:30 +0000 Subject: [PATCH] own sound instead of PlayOnce --- stepmania/src/ScreenPrompt.cpp | 4 +++- stepmania/src/ScreenPrompt.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenPrompt.cpp b/stepmania/src/ScreenPrompt.cpp index 65fb973115..1468017464 100644 --- a/stepmania/src/ScreenPrompt.cpp +++ b/stepmania/src/ScreenPrompt.cpp @@ -95,6 +95,8 @@ void ScreenPrompt::Init() m_Out.Load( THEME->GetPathB("ScreenPrompt","out") ); this->AddChild( &m_Out ); + + m_sndChange.Load( THEME->GetPathS("ScreenPrompt","change"), true ); } void ScreenPrompt::Update( float fDeltaTime ) @@ -161,7 +163,7 @@ void ScreenPrompt::Change( int dir ) m_rectAnswerBox.SetXY( m_textAnswer[m_Answer].GetX(), m_textAnswer[m_Answer].GetY() ); m_rectAnswerBox.SetZoomX( m_textAnswer[m_Answer].GetUnzoomedWidth()+10.0f ); - SOUND->PlayOnce( THEME->GetPathS("ScreenPrompt","change") ); + m_sndChange.Play(); } void ScreenPrompt::MenuLeft( PlayerNumber pn ) diff --git a/stepmania/src/ScreenPrompt.h b/stepmania/src/ScreenPrompt.h index 76f0e9dfed..4547b95a41 100644 --- a/stepmania/src/ScreenPrompt.h +++ b/stepmania/src/ScreenPrompt.h @@ -69,6 +69,8 @@ protected: void* m_pCallbackData; Transition m_In; Transition m_Out; + + RageSound m_sndChange; }; #endif