-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Due to naive thinking, I thought, that sampling rate synchronization is not required for the PCM IO thread. After all, the bluealsa keeps everything in sync, and the FIFO provides convenient sync (blocking) mechanism. NOPE! Writing to the FIFO blocks, BUT only if the FIFO buffer is full. If the ring buffer size is smaller than the FIFO buffer we will write out all data from the ring buffer instantly, and we will try to write even more... which will cause under-run (which is visible since the commit b3e8ef3). So, it is clear, that sync is also required for the PCM IO thread. Furthermore, this commit adds dynamic (sampling rate based) ring buffer size constraints in order to further enhance CPU utilization.
- Loading branch information
Showing
3 changed files
with
133 additions
and
18 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