fix start sound being cut short

This commit is contained in:
Glenn Maynard
2005-01-08 16:59:59 +00:00
parent 26bae5f769
commit 8960227799
+3 -1
View File
@@ -12,6 +12,7 @@
#include "RageLog.h"
#include <set>
#include "Foreach.h"
#include "RageSoundManager.h"
#define NUM_ICON_PARTS THEME->GetMetricI(m_sName,"NumIconParts")
#define NUM_PREVIEW_PARTS THEME->GetMetricI(m_sName,"NumPreviewParts")
@@ -596,8 +597,9 @@ void ScreenSelectMaster::MenuStart( PlayerNumber pn )
GameCommand &mc = m_aGameCommands[m_iChoice[pn]];
SOUND->PlayOnceFromDir( ANNOUNCER->GetPathTo(ssprintf("%s comment %s",m_sName.c_str(), mc.m_sName.c_str())) );
/* Play a copy of the sound, so it'll finish playing even if we leave the screen immediately. */
if( mc.m_sSoundPath.empty() )
m_soundStart.Play();
SOUNDMAN->PlayCopyOfSound( m_soundStart );
if( mc.m_sScreen.empty() )
{