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

Roc can't play with PulseAudio when Resampler is enabled on Raspberry Pi A #64

Closed
gavv opened this issue May 15, 2016 · 6 comments
Closed
Assignees
Labels
defect Something isn't working performance
Milestone

Comments

@gavv
Copy link
Member

gavv commented May 15, 2016

If Resampler is enabled, and SoX is used for audio output (pulseaudio or ALSA), playback is discontinuous.

If we:

  • disable Resampler (--resampling=no), or
  • use direct ALSA backend (from alsa branch) instead of SoX,

everything becomes OK. This means that we have problems with CPU usage.

@gavv
Copy link
Member Author

gavv commented May 15, 2016

Related to #68.

@gavv gavv mentioned this issue May 15, 2016
5 tasks
@gavv gavv added defect Something isn't working portability labels May 15, 2016
@gavv gavv added this to the 0.1 milestone May 15, 2016
@gavv
Copy link
Member Author

gavv commented Mar 27, 2017

Note that it's reproduced only when:

At first, we need to determine the bottleneck.

Resampler and SoX are separate threads, so we can start with just monitoring their CPU usage. Then we can profile them with tools like pprof.

@gavv gavv changed the title Roc can't play with SoX when Resampler is enabled on Raspbian Roc can't play with PulseAudio when Resampler is enabled on Raspbian Jul 11, 2017
@gavv
Copy link
Member Author

gavv commented Jul 11, 2017

The problem is that Resampler eats up to ~85% CPU, and PulseAudio eats ~20% CPU, and thus we are out of CPU and hear glitches.

@gavv
Copy link
Member Author

gavv commented Sep 19, 2017

This is likely to be fixed by #85.

@gavv
Copy link
Member Author

gavv commented Dec 7, 2017

Needs testing.

@gavv gavv changed the title Roc can't play with PulseAudio when Resampler is enabled on Raspbian Roc can't play with PulseAudio when Resampler is enabled on Raspberry Pi A Jan 3, 2019
@gavv
Copy link
Member Author

gavv commented Feb 19, 2019

Unable to test it, but I hope it's fixed. Closing for now.

@gavv gavv closed this as completed Feb 19, 2019
@gavv gavv added this to Roc Toolkit Jul 6, 2024
@gavv gavv moved this to Done in Roc Toolkit Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working performance
Projects
Status: Done
Development

No branches or pull requests

2 participants