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

Audio Problem with Pipewire and Jack #173

Closed
joshuarubin opened this issue Jul 16, 2021 · 7 comments
Closed

Audio Problem with Pipewire and Jack #173

joshuarubin opened this issue Jul 16, 2021 · 7 comments

Comments

@joshuarubin
Copy link

I just wanted to point out that the audio sink is unusable with the default rtaudio sink on my system. It seems similar to thestk/rtaudio#286.

The symptom is that all other system audio stops working and a buzz on a 0.25s interval or so is played through the selected source instead of the desired audio.

I was able to work around this by recompiling audio_sink/src/main.cpp so that RtAudio audio; is changed to RtAudio audio = RtAudio(RtAudio::LINUX_PULSE);. I know this is not a generic solution, but I wanted to list this here in case anyone else ran into the issue.

@AlexandreRouma
Copy link
Owner

AlexandreRouma commented Jul 16, 2021

Hello,

Yes this is a known issue highlighted in #112
I will be switching back to portaudio as RtAudio doesn't seem to be a reliable library.

In the mean time this is indeed the recommended fix.

EDIT: To be clear I avoided this modification as some people seem to still have it running fine, so to avoid potentially causing issues to those people I prefered leaving RtAudio with the default settings.

@joshuarubin
Copy link
Author

portaudio is a decent solution, but it's support for realtime, low latency, systems is pretty minimal. If you could please at least ensure that portaudio's support for jack is working when you do this, it would be much appreciated. Thanks!

@AlexandreRouma
Copy link
Owner

AlexandreRouma commented Jul 16, 2021

PortAudio is used by basically all other SDR applications besides CubicSDR. there's no issue with latency in my experience.

i'm pretty sure portaudio already supports jack as it's listed in its readme and considering it's used by so many well known apps like VLC, Audacity, SDR#, FLdigi, etc... I'm sure support for it is pretty good.

@mbiette
Copy link
Contributor

mbiette commented Jul 16, 2021

PR #175 has been opened with a rework of the sink to use PortAudio. Feedback on it is welcome.

@kistlin
Copy link
Contributor

kistlin commented Jan 26, 2022

In addition I started implementing a PipeWire sink on feature/add_pipewire_support. (No pipewire-pulse or -jack required)
Currently it is playing (still hard-coded) on the default device with one channel at 48kHz. Also the PipeWire header paths in the CMakeLists.txt / main.cpp most likely need to be adapted. And PipeWire >0.3 is required.

But playing some nearby radio stations works fine :).

@kistlin
Copy link
Contributor

kistlin commented Jan 26, 2022

Maybe thestk/rtaudio#324 adds support soon, then this could be replaced.

@HT-Dat
Copy link

HT-Dat commented May 27, 2024

Changing RtAudio audio;to RtAudio audio = RtAudio(RtAudio::LINUX_PULSE); and recompile did the trick

PopOS 22.04

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

No branches or pull requests

5 participants