use PlayMusic
This commit is contained in:
@@ -197,9 +197,9 @@ void MusicBannerWheel::PlayMusicSample()
|
||||
Song* pSong = GetSelectedSong();
|
||||
if( pSong && pSong->HasMusic() )
|
||||
{
|
||||
MUSIC->Stop();
|
||||
MUSIC->Load( pSong->GetMusicPath() );
|
||||
MUSIC->Play( true, pSong->m_fMusicSampleStartSeconds, pSong->m_fMusicSampleLengthSeconds );
|
||||
SOUNDMAN->PlayMusic(pSong->GetMusicPath(), true,
|
||||
pSong->m_fMusicSampleStartSeconds,
|
||||
pSong->m_fMusicSampleLengthSeconds);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ ScreenAppearanceOptions::ScreenAppearanceOptions() :
|
||||
m_Menu.SetTimer( 99 );
|
||||
m_Menu.StopTimer();
|
||||
|
||||
MUSIC->LoadAndPlayIfNotAlready( THEME->GetPathTo("Sounds","appearance options music") );
|
||||
SOUNDMAN->PlayMusic( THEME->GetPathTo("Sounds","appearance options music") );
|
||||
}
|
||||
|
||||
void ScreenAppearanceOptions::ImportOptions()
|
||||
|
||||
@@ -1161,8 +1161,9 @@ void ScreenEdit::InputEdit( const DeviceInput& DeviceI, const InputEventType typ
|
||||
}
|
||||
break;
|
||||
case SDLK_m:
|
||||
MUSIC->Load( m_pSong->GetMusicPath() );
|
||||
MUSIC->Play( false, m_pSong->m_fMusicSampleStartSeconds, m_pSong->m_fMusicSampleLengthSeconds );
|
||||
SOUNDMAN->PlayMusic( m_pSong->GetMusicPath(), false,
|
||||
m_pSong->m_fMusicSampleStartSeconds,
|
||||
m_pSong->m_fMusicSampleLengthSeconds );
|
||||
break;
|
||||
case SDLK_LEFTBRACKET:
|
||||
case SDLK_RIGHTBRACKET:
|
||||
|
||||
@@ -710,11 +710,8 @@ void ScreenSelectMusic::AfterMusicChange()
|
||||
for( pn = 0; pn < NUM_PLAYERS; ++pn)
|
||||
m_arrayNotes[pn].clear();
|
||||
|
||||
int banners_when_fast = 0;
|
||||
|
||||
/* If we're rouletting, and we're moving fast, don't touch the banner. */
|
||||
bool no_banner_change = false;
|
||||
LOG->Trace("moving %i, roulette %i", m_MusicWheel.IsMoving(), m_MusicWheel.IsRouletting());
|
||||
if(m_MusicWheel.IsMoving())
|
||||
{
|
||||
/* We're moving fast. Don't change banners if we're rouletting, or if
|
||||
@@ -805,9 +802,9 @@ void ScreenSelectMusic::PlayMusicSample()
|
||||
Song* pSong = m_MusicWheel.GetSelectedSong();
|
||||
if( pSong && pSong->HasMusic() )
|
||||
{
|
||||
MUSIC->Stop();
|
||||
MUSIC->Load( pSong->GetMusicPath() );
|
||||
MUSIC->Play( true, pSong->m_fMusicSampleStartSeconds, pSong->m_fMusicSampleLengthSeconds );
|
||||
SOUNDMAN->PlayMusic(pSong->GetMusicPath(), true,
|
||||
pSong->m_fMusicSampleStartSeconds,
|
||||
pSong->m_fMusicSampleLengthSeconds);
|
||||
}
|
||||
// else
|
||||
// MUSIC->LoadAndPlayIfNotAlready( THEME->GetPathTo("Sounds","select music music") );
|
||||
|
||||
Reference in New Issue
Block a user