add FadeInSeconds property

This commit is contained in:
Glenn Maynard
2007-04-06 18:26:09 +00:00
parent 570f17017a
commit 59aaf0dec9
4 changed files with 39 additions and 5 deletions
+2
View File
@@ -44,6 +44,7 @@ RageSoundParams::RageSoundParams():
{
m_StartSecond = 0;
m_LengthSeconds = -1;
m_fFadeInSeconds = 0;
m_fFadeOutSeconds = 0;
m_Volume = 1.0f;
m_fPitch = 1.0f;
@@ -581,6 +582,7 @@ void RageSound::ApplyParams()
m_pSource->SetProperty( "Speed", m_Param.m_fSpeed );
m_pSource->SetProperty( "StartSecond", m_Param.m_StartSecond );
m_pSource->SetProperty( "LengthSeconds", m_Param.m_LengthSeconds );
m_pSource->SetProperty( "FadeInSeconds", m_Param.m_fFadeInSeconds );
m_pSource->SetProperty( "FadeSeconds", m_Param.m_fFadeOutSeconds );
float fVolume = m_Param.m_Volume * SOUNDMAN->GetMixVolume();