don't use PlayOnce in performance critical places

This commit is contained in:
Chris Danford
2004-03-23 23:56:38 +00:00
parent c00aa7dc01
commit 7807b0c703
10 changed files with 31 additions and 11 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ void ScreenAttract::AttractInput( const DeviceInput& DeviceI, const InputEventTy
SOUND->StopMusic();
/* We already played the coin sound. Don't play it again. */
if( MenuI.button != MENU_BUTTON_COIN )
SOUND->PlayOnce( THEME->GetPathToS("Common coin") );
SCREENMAN->PlayCoinSound();
SDL_Delay( (int)(JOIN_PAUSE_SECONDS*1000) ); // do a little pause, like the arcade does
LOG->Trace("ScreenAttract::AttractInput: go to ScreenTitleMenu" );
SCREENMAN->SetNewScreen( "ScreenTitleMenu" );