diff --git a/src/sound/SESoundInternal.cpp b/src/sound/SESoundInternal.cpp index ae14fc0..bf6ff4b 100644 --- a/src/sound/SESoundInternal.cpp +++ b/src/sound/SESoundInternal.cpp @@ -13,6 +13,22 @@ SESoundInternal::SESoundInternal() { this->m_uniqueID = SESound::s_UniqueID++; } +float SESoundInternal::GetVolume() { + if (!SESound::s_Initialized) { + return 0.0f; + } + + float volume = this->m_volume; + + if (this->m_fadeIn || this->m_fadeOut) { + volume *= this->m_fadeVolume; + } + + // TODO + + return volume; +} + void SESoundInternal::Play() { FMOD_RESULT result; diff --git a/src/sound/SESoundInternal.hpp b/src/sound/SESoundInternal.hpp index 8b7e649..3d27459 100644 --- a/src/sound/SESoundInternal.hpp +++ b/src/sound/SESoundInternal.hpp @@ -50,6 +50,7 @@ class SESoundInternal : public TSLinkedNode { // Member functions SESoundInternal(); + float GetVolume(); void Play(); };