# Linux Audio Crackling

**URL:** <https://forum.juce.com/t/linux-audio-crackling/50409>\
**Category:** General JUCE discussion\
**Created:** [March 1, 2022, 4:06am UTC](https://forum.juce.com/t/linux-audio-crackling/50409 "2022-03-01T04:06:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbaine1](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@cbaine1](https://forum.juce.com/u/cbaine1)\
**Post date:** [March 1, 2022, 4:06am UTC](https://forum.juce.com/t/linux-audio-crackling/50409/1 "2022-03-01T04:06:17Z")

</div>

Hi,

I am on Ubuntu and found an issue with the audio playback. If you open the DemoRunner and select the AudioPlaybackDemo, and play an audio file it is very crackly. The same file plays fine in other linux apps. Is there a dependency I am missing? Or a step in the setup process I missed? I added all the dependencies on this github page. [https://github.com/juce-framework/JUCE/blob/master/docs/Linux%20Dependencies.md](https://github.com/juce-framework/JUCE/blob/master/docs/Linux%20Dependencies.md)

---

<div class="post-metadata">

**Author:** ![KottVV](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kottvv/32/14169_2.png) [@KottVV](https://forum.juce.com/u/KottVV)\
**Post date:** [March 1, 2022, 8:40am UTC](https://forum.juce.com/t/linux-audio-crackling/50409/2 "2022-03-01T08:40:07Z")

</div>

Hi,

What audio subsystem? It works with Jack and pure Alsa, using Alsa-PulseAudio bridge is not recommended.

---

<div class="post-metadata">

**Author:** ![cbaine1](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@cbaine1](https://forum.juce.com/u/cbaine1)\
**Post date:** [March 1, 2022, 1:55pm UTC](https://forum.juce.com/t/linux-audio-crackling/50409/3 "2022-03-01T13:55:30Z")

</div>

Oh. Looks like it is Alsa\<-\>Pulseaudio. This was just on opening the Demo Runner on a new ubuntu build. Is there a way of disabling the Alsa-PureAudio bridge, or enabling Jack/Alsa? So you have any recommendations for learning more? Thanks!

---

<div class="post-metadata">

**Author:** ![KottVV](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kottvv/32/14169_2.png) [@KottVV](https://forum.juce.com/u/KottVV)\
**Post date:** [March 1, 2022, 10:32pm UTC](https://forum.juce.com/t/linux-audio-crackling/50409/4 "2022-03-01T22:32:10Z")

</div>

It depends on your audio workflow. In few words:  
With ALSA the application “talks” with soundcard directly, this means it used exclusively, so no any other app can use soundcard at the same time.  
Jack is the sound server (with routing /patching and transport) which takes soundcard exclusively and all Jack-aware app connects to the Jack.  
PulseAudio is the sound server too but designed for “everything but sound production” imho.

So, the simple way is to suspend pulseaudio prior your app start:  
`pasuspender -- ./DemoRunner`

Or rework your sound setup, using pulseaudio-jack bridge [How use PulseAudio and JACK? | JACK Audio Connection Kit](https://jackaudio.org/faq/pulseaudio_and_jack.html)
