diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index a4749fcc4f..31ecd79561 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -575,6 +575,8 @@ void ScreenEdit::Init() m_soundChangeLine.Load( THEME->GetPathS("ScreenEdit","line"), true ); m_soundChangeSnap.Load( THEME->GetPathS("ScreenEdit","snap"), true ); m_soundMarker.Load( THEME->GetPathS("ScreenEdit","marker"), true ); + m_soundSwitch.Load( THEME->GetPathS("ScreenEdit","switch") ); + m_soundSave.Load( THEME->GetPathS("ScreenEdit","save") ); m_soundMusic.Load( m_pSong->GetMusicPath() ); @@ -1087,7 +1089,7 @@ void ScreenEdit::InputEdit( const DeviceInput& DeviceI, const InputEventType typ GAMEMAN->StepsTypeToString( pSteps->m_StepsType ).c_str(), DifficultyToString( pSteps->GetDifficulty() ).c_str(), pSteps->GetDescription().c_str() ) ); - SOUND->PlayOnce( THEME->GetPathS("ScreenEdit","switch") ); + m_soundSwitch.Play(); } break; case EDIT_BUTTON_BPM_UP: @@ -1764,7 +1766,7 @@ void ScreenEdit::HandleMainMenuChoice( MainMenuChoice c, const vector &iAns HandleScreenMessage( SM_Success ); } - SOUND->PlayOnce( THEME->GetPathS("ScreenEdit","save") ); + m_soundSave.Play(); } break; case revert_to_last_save: diff --git a/stepmania/src/ScreenEdit.h b/stepmania/src/ScreenEdit.h index 1421571247..e192611ae1 100644 --- a/stepmania/src/ScreenEdit.h +++ b/stepmania/src/ScreenEdit.h @@ -173,6 +173,8 @@ protected: RageSound m_soundChangeLine; RageSound m_soundChangeSnap; RageSound m_soundMarker; + RageSound m_soundSwitch; + RageSound m_soundSave; // used for reverting void CopyToLastSave();