forked from mozilla/cubeb-coreaudio-rs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fully initialize the aggregate device before using it.
In the current implementation, we assume the aggregate device is created immediately after calling the system API to create it, and we also assume the sub-devices of the aggregate device are added immediately upon we call the system API to set the sub-devices. Unfortunately, these assumptions are not correct. Occasionally these settings are not executed immediately, especially when they are not called on the main thread (e.g., we may create an aggregate device off the main thread when switching devices). Using the listeners monitoring the devices-changed events can make sure those settings are done.
- Loading branch information
1 parent
1cff8dc
commit 96ea69c
Showing
3 changed files
with
204 additions
and
88 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
Oops, something went wrong.