mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(sound): set up fade in SESoundInternal::Play
This commit is contained in:
parent
dafab62718
commit
30650a4476
@ -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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user