-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not call speaker.{Resume(),Suspend()} in sound.Play* anymore
This is causing more issues than it needed to, and the CPU usage while it is unfortunate it is not that bad. We will still call speaker.Suspend() when the sound is disabled and speaker.Resume() when the sound is re-enabled. This results in 0% CPU usage when this feature is not used, and doesn't need to bring back the complicated initialisation code we had before.
- Loading branch information
1 parent
890c5d3
commit ecdf3f2
Showing
4 changed files
with
24 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters