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

Close stream when idle on Android #1054

Open
chatziko opened this issue Sep 13, 2022 · 0 comments
Open

Close stream when idle on Android #1054

chatziko opened this issue Sep 13, 2022 · 0 comments

Comments

@chatziko
Copy link

Since recently (#931), snapclient on pulseaudio closes the stream when idle. This awesome little change reduced the idle CPU usage on my PI4 from 5-10% to almost 0.

So I wondered whether the same optimization is performed on Android (oboe/opensl), but as far as I can tell from the code (not an expert), it is not. On my phone snapclient seems to take 1-2% cpu when idle, not too much, but still on mobile devices we also have the battery to worry about.

It would be great if the close-when-idle optimization could be implemented on Android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant