Skip to content
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

Set layer state to stopped on pause. #818

Merged
merged 2 commits into from
Jul 7, 2022
Merged

Conversation

boks1971
Copy link
Contributor

@boks1971 boks1971 commented Jul 7, 2022

Previously, on pause, the worker was let run and declare
layer gone 1/2 a second (or whatever the stream tracker window
is set for) later.

But, when rapidly changing mute/unmute, the following cuold happen
and layer changes may be missed

  • Available layers - 0, 1, 2
  • Mute
  • Before layer gone detected, unumute. Because of this layer gone
    is not reported and available layers stay at 0, 1, 2.
  • Stream tracker is reset on unmute to enable quick detection of layer
    start.
  • If all layers start back up, no issues.
  • But, if the layers do not start back up, there is no layer start
    firing and the available layers are still 0, 1, 2 which is incorrect.

Previously, on pause, the worker was let run and declare
layer gone 1/2 a second (or whatever the stream tracker window
is set for) later.

But, when rapidly changing mute/unmute, the following cuold happen
and layer changes may be missed
- Available layers - 0, 1, 2
- Mute
- Before layer gone detected, unumute. Because of this layer gone
  is not reported and available layers stay at 0, 1, 2.
- Stream tracker is reset on unmute to enable quick detection of layer
  start.
- If all layers start back up, no issues.
- But, if the layers do not start back up, there is no layer start
  firing and the available layers are still 0, 1, 2 which is incorrect.
@boks1971 boks1971 merged commit 8315a54 into master Jul 7, 2022
@boks1971 boks1971 deleted the raja_layer_gone_on_pause branch July 7, 2022 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants