From 30650a447609e7333c2a764c5d277a8e3130792e Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sat, 29 Nov 2025 16:06:27 -0600 Subject: [PATCH] feat(sound): set up fade in SESoundInternal::Play --- src/sound/SESoundInternal.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/sound/SESoundInternal.cpp b/src/sound/SESoundInternal.cpp index 503f3fb..249c4d4 100644 --- a/src/sound/SESoundInternal.cpp +++ b/src/sound/SESoundInternal.cpp @@ -49,6 +49,15 @@ void SESoundInternal::Play() { // TODO + // Set up fade + + if (this->m_fadeInTime <= 0.0f) { + this->m_fadeVolume = 1.0f; + } else { + this->m_fadeOut = 0; + this->m_fadeIn = 1; + } + // Update volume this->UpdateVolume();