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

Auto-pause devices and pipelines #680

Open
5 tasks
gavv opened this issue Jan 26, 2024 · 0 comments
Open
5 tasks

Auto-pause devices and pipelines #680

gavv opened this issue Jan 26, 2024 · 0 comments

Comments

@gavv
Copy link
Member

gavv commented Jan 26, 2024

Requires these tasks to be completed first:

In sndio::Pump, we need to do the following:

  • if source becomes idle:
    • if there is backup source, pause main source, switch to backup source, use it until main source becomes ready, then pause backup source, resume main source, and switch to it
    • if there is no backup source, pause source and sink, then sleep until source becomes ready, then resume source and sink
  • if sink becomes idle:
    • pause source and sink, then sleep until sink becomes ready, then resume source and sink

After doing this, pump we will obtain the following behavior:

  • on sender, while input device is idle, we don't send packets
  • on receiver, while there are no sessions, we don't use device and CPU
  • on receiver, while device is unavailable, we don't use device and CPU (requires Rework resume/pause support in PulseaudioDevice #529)
@gavv gavv added this to Frontlog in kanban board Jan 26, 2024
@gavv gavv mentioned this issue Jan 26, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant