Watching the alive status for all the running devices#170
Draft
ChunMinChang wants to merge 4 commits intomozilla:trailblazerfrom
Draft
Watching the alive status for all the running devices#170ChunMinChang wants to merge 4 commits intomozilla:trailblazerfrom
ChunMinChang wants to merge 4 commits intomozilla:trailblazerfrom
Conversation
This patch implements the code to monitor the alive status of both input and output devices in use. We used to watch input device only. With the changes here, we are able to watch the alive status of all the running devices when user doesn't follow the system default devices. If the watched device is unplugged before it's destroyed, we will fire an error callback.
Collaborator
|
Does this solve a problem in practice? |
Member
Author
I believe this relates to setSinkId. Now if the user-selected/non-default output device is unplugged while it's playing, the underlying stream will stop playing behind the scenes without notifying gecko to tear down the related variables or settings. In addition, cubeb already does this job in WASAPI and PulseAudio backends so this makes cubeb behaves the same way on CoreAudio backend. |
Collaborator
|
Sure, ok, I really wasn't sure what this was about, let me know when it's ready! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We should monitor the alive status of both input and output devices in use. We used to watch input device only. With the code in this PR, we are able to watch the alive status of all the running devices when user doesn't follow the system default devices. If any user-selected device is unplugged before it's destroyed, we should fire an error callback.