Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Prevent the audio periodic thread from blocking the main thread.
It seems like when an android phone goes to sleep, it's possible for something in the audio thread to block. That was causing the audio periodic thread to block, and since the recent changes, the main thread as well. Now, we use a separate condition to tell the periodic thread to run, so if the periodic thread is blocked, the main thread will always make progress. This probably also can improve performance of the main thread in some rare cases. Fixes #1301.
- Loading branch information
Showing
2 changed files
with
28 additions
and
11 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