mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-11 08:54:05 +03:00
feat(sound): set up fade in SESoundInternal::Play
This commit is contained in:
1 file changed
+9
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user