-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Audio] Fix pausing stream on entering tree #83779
Conversation
Still some quirks to work out |
There are some details that don't always work, but that's for a separate workout I think, though I can add some details to that too, currently Essentially: This just ensures that the pause status of the stream is correctly assigned on entering the tree, but not changing any behavior involving |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The stream_paused
property has questionable design. It's both user-controlled and depends on whether the node is paused. I think this should be decoupled (not in this PR).
The fix itself looks ok. I'd say the comments aren't really necessary.
I'll remove the comments! |
The paused notifications are only sent when pause status is changed, this ensures that streams that are non-processing do not play when added to the tree. Also ensures that the `process_mode` property applies generally.
9c4e0b1
to
72fccd8
Compare
Thanks! |
Thank you! |
Cherry-picked for 4.1.3. |
The paused notifications are only sent when pause status is changed, this ensures that streams that are non-processing do not play when added to the tree. Also ensures that the
process_mode
property applies generally.