fix sample fade out in the editor

This commit is contained in:
Glenn Maynard
2003-02-10 21:44:27 +00:00
parent 76e1f7b8ba
commit d80d8a3c70
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1158,7 +1158,8 @@ void ScreenEdit::InputEdit( const DeviceInput& DeviceI, const InputEventType typ
SOUNDMAN->PlayMusic("");
SOUNDMAN->PlayMusic( m_pSong->GetMusicPath(), false,
m_pSong->m_fMusicSampleStartSeconds,
m_pSong->m_fMusicSampleLengthSeconds );
m_pSong->m_fMusicSampleLengthSeconds,
1.5f );
break;
case SDLK_LEFTBRACKET:
case SDLK_RIGHTBRACKET:
+2 -1
View File
@@ -871,7 +871,8 @@ void ScreenSelectMusic::PlayMusicSample()
{
SOUNDMAN->PlayMusic(pSong->GetMusicPath(), true,
pSong->m_fMusicSampleStartSeconds,
pSong->m_fMusicSampleLengthSeconds);
pSong->m_fMusicSampleLengthSeconds,
1.5f); /* fade out for 1.5 seconds */
}
// else
// SOUNDMAN->PlayMusic( THEME->GetPathTo("Sounds","select music music") );