diff --git a/code/Spray/SoundComponent.cpp b/code/Spray/SoundComponent.cpp index be21c6f208..f31d3ed9be 100644 --- a/code/Spray/SoundComponent.cpp +++ b/code/Spray/SoundComponent.cpp @@ -77,10 +77,10 @@ void SoundComponent::setPitch(float pitch) m_handle->setPitch(pitch); } -void SoundComponent::setParameter(int32_t id, float parameter) +void SoundComponent::setParameter(const std::wstring& id, float parameter) { if (m_handle != nullptr) - m_handle->setParameter(id, parameter); + m_handle->setParameter(sound::getParameterHandle(id), parameter); } } diff --git a/code/Spray/SoundComponent.h b/code/Spray/SoundComponent.h index 17f25ecaaa..d50fa15dbd 100644 --- a/code/Spray/SoundComponent.h +++ b/code/Spray/SoundComponent.h @@ -59,7 +59,7 @@ class T_DLLCLASS SoundComponent : public world::IEntityComponent void setPitch(float pitch); - void setParameter(int32_t id, float parameter); + void setParameter(const std::wstring& id, float parameter); private: Ref< sound::ISoundPlayer > m_soundPlayer;