From d30d0c0e76fb382c1f15edd10c03286dbffb3dd0 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 9 Dec 2006 23:54:33 +0000 Subject: [PATCH] expose SetProperty --- stepmania/src/RageSound.cpp | 5 +++++ stepmania/src/RageSound.h | 1 + 2 files changed, 6 insertions(+) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index e49efe394e..f3adaecf7f 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -786,6 +786,11 @@ void RageSound::ApplyParams() m_pSource->SetProperty( "Speed", m_Param.m_fSpeed ); } +bool RageSound::SetProperty( const RString &sProperty, float fValue ) +{ + return m_pSource->SetProperty( sProperty, fValue ); +} + RageSoundParams::StopMode_t RageSound::GetStopMode() const { if( m_Param.StopMode != RageSoundParams::M_AUTO ) diff --git a/stepmania/src/RageSound.h b/stepmania/src/RageSound.h index 594ffad09d..ccba300079 100644 --- a/stepmania/src/RageSound.h +++ b/stepmania/src/RageSound.h @@ -144,6 +144,7 @@ public: int GetID() const { return m_iID; } void SetParams( const RageSoundParams &p ); const RageSoundParams &GetParams() const { return m_Param; } + bool SetProperty( const RString &sProperty, float fValue ); // // Lua