feat(sound): set up fade in SESoundInternal::Play

This commit is contained in:
fallenoak 2025-11-29 16:06:27 -06:00
parent dafab62718
commit 30650a4476
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -49,6 +49,15 @@ void SESoundInternal::Play() {
// TODO // 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 // Update volume
this->UpdateVolume(); this->UpdateVolume();