Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only start/stop the audio engine if its been initialized
simple things first. after some debugging on audio "ducking" it looks like we only start to kill audio after we initialize the audio engine. this first "fix" simply prevents us from initializing the audio engine if its not already been initialized. when going into the background/foreground. other than this, we initialize the audio engine when you first play an audio clip in `void AudioEvent::play()` this still leaves an issue lying around where after we have initialized the audio engine we will now "forever" duck audio when we go into the background/foreground. but at least you should be able to avoid this entirely if you never load a file with audio. Diffs= d4b3118e1 only start/stop the audio engine if its been initialized (#7335) Co-authored-by: Maxwell Talbot <[email protected]>
- Loading branch information