FadeLength -> FadeOutLength
This commit is contained in:
@@ -85,7 +85,7 @@ struct MusicToPlay
|
|||||||
TimingData m_TimingData;
|
TimingData m_TimingData;
|
||||||
NoteData m_LightsData;
|
NoteData m_LightsData;
|
||||||
bool bForceLoop;
|
bool bForceLoop;
|
||||||
float fStartSecond, fLengthSeconds, fFadeLengthSeconds;
|
float fStartSecond, fLengthSeconds, fFadeOutLengthSeconds;
|
||||||
bool bAlignBeat;
|
bool bAlignBeat;
|
||||||
MusicToPlay()
|
MusicToPlay()
|
||||||
{
|
{
|
||||||
@@ -173,8 +173,8 @@ static void StartMusic( MusicToPlay &ToPlay )
|
|||||||
const float fRealEndSec = NewMusic->m_NewTiming.GetElapsedTimeFromBeatNoOffset( fEndBeat );
|
const float fRealEndSec = NewMusic->m_NewTiming.GetElapsedTimeFromBeatNoOffset( fEndBeat );
|
||||||
const float fNewLengthSec = fRealEndSec - ToPlay.fStartSecond;
|
const float fNewLengthSec = fRealEndSec - ToPlay.fStartSecond;
|
||||||
|
|
||||||
/* Extend fFadeLengthSeconds, so the added time is faded out. */
|
/* Extend fFadeOutLengthSeconds, so the added time is faded out. */
|
||||||
ToPlay.fFadeLengthSeconds += fNewLengthSec - ToPlay.fLengthSeconds;
|
ToPlay.fFadeOutLengthSeconds += fNewLengthSec - ToPlay.fLengthSeconds;
|
||||||
ToPlay.fLengthSeconds = fNewLengthSec;
|
ToPlay.fLengthSeconds = fNewLengthSec;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -235,7 +235,7 @@ static void StartMusic( MusicToPlay &ToPlay )
|
|||||||
RageSoundParams p;
|
RageSoundParams p;
|
||||||
p.m_StartSecond = ToPlay.fStartSecond;
|
p.m_StartSecond = ToPlay.fStartSecond;
|
||||||
p.m_LengthSeconds = ToPlay.fLengthSeconds;
|
p.m_LengthSeconds = ToPlay.fLengthSeconds;
|
||||||
p.m_FadeLength = ToPlay.fFadeLengthSeconds;
|
p.m_FadeLength = ToPlay.fFadeOutLengthSeconds;
|
||||||
p.m_StartTime = when;
|
p.m_StartTime = when;
|
||||||
if( ToPlay.bForceLoop )
|
if( ToPlay.bForceLoop )
|
||||||
p.StopMode = RageSoundParams::M_LOOP;
|
p.StopMode = RageSoundParams::M_LOOP;
|
||||||
@@ -635,7 +635,7 @@ void GameSoundManager::PlayMusic(
|
|||||||
bool bForceLoop,
|
bool bForceLoop,
|
||||||
float fStartSecond,
|
float fStartSecond,
|
||||||
float fLengthSeconds,
|
float fLengthSeconds,
|
||||||
float sFadeLengthSeconds,
|
float fFadeOutLengthSeconds,
|
||||||
bool bAlignBeat )
|
bool bAlignBeat )
|
||||||
{
|
{
|
||||||
// LOG->Trace("play '%s' (current '%s')", file.c_str(), g_Playing->m_Music->GetLoadedFilePath().c_str());
|
// LOG->Trace("play '%s' (current '%s')", file.c_str(), g_Playing->m_Music->GetLoadedFilePath().c_str());
|
||||||
@@ -657,7 +657,7 @@ void GameSoundManager::PlayMusic(
|
|||||||
ToPlay.bForceLoop = bForceLoop;
|
ToPlay.bForceLoop = bForceLoop;
|
||||||
ToPlay.fStartSecond = fStartSecond;
|
ToPlay.fStartSecond = fStartSecond;
|
||||||
ToPlay.fLengthSeconds = fLengthSeconds;
|
ToPlay.fLengthSeconds = fLengthSeconds;
|
||||||
ToPlay.fFadeLengthSeconds = sFadeLengthSeconds;
|
ToPlay.fFadeOutLengthSeconds = fFadeOutLengthSeconds;
|
||||||
ToPlay.bAlignBeat = bAlignBeat;
|
ToPlay.bAlignBeat = bAlignBeat;
|
||||||
|
|
||||||
/* Add the MusicToPlay to the g_MusicsToPlay queue. */
|
/* Add the MusicToPlay to the g_MusicsToPlay queue. */
|
||||||
|
|||||||
Reference in New Issue
Block a user