Audio crackling very terribly, when it does work at all

Help for Audacity 2.x.x on GNU/Linux.
Forum rules
ImageThis forum is for Audacity 2.x.x on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
TheNH813
Posts: 4
Joined: Thu Mar 15, 2018 9:11 am
Operating System: Linux *buntu

Audio crackling very terribly, when it does work at all

Post by TheNH813 » Thu Mar 15, 2018 9:24 am

OS: Kubuntu 14.04LTS
Issue: Audio doesn't work.
Version: Audacity 2.0.5-1ubuntu3.2:amd64

The audio crackles very terribly when it does work, if at all. NOTE: Audio on file might be high.
See video: https://mega.nz/#!2VckiLCT!Vmioj2jonUIQ ... f__zhwh_rs
The file it was asking to recover was the one I previously tried opening.
I deleted the .audacity-data folder multiple times and tried purging and reinstalling it.

Does this possibly have something to do with the Phonon media backend that KDE uses?

steve
Site Admin
Posts: 47250
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu
Contact:

Re: Audio crackling very terribly, when it does work at all

Post by steve » Thu Mar 15, 2018 10:22 am

Try changing the recording and playback devices in the device toolbar to the "hw" options that correspond with your sound card. Note that this will tell Audacity to use the ALSA drivers directly (bypassing other sound system "layers"), which means that Audacity will require exclusive access to the sound card, so you need to ensure that no other applications or services are accessing the sound card when you start Audacity.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

TheNH813
Posts: 4
Joined: Thu Mar 15, 2018 9:11 am
Operating System: Linux *buntu

Re: Audio crackling very terribly, when it does work at all

Post by TheNH813 » Thu Mar 15, 2018 10:50 am

Well, that's a simplest fix I'v run across in a while. It's working perfectly fine now.

As a side note, it's definitely encountering a buffer underrun when using pulseaudio.
There are hundreds of lines stating "ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred".
But directly using the hardware did fix the problem.

Thanks for the help.

steve
Site Admin
Posts: 47250
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu
Contact:

Re: Audio crackling very terribly, when it does work at all

Post by steve » Thu Mar 15, 2018 1:32 pm

TheNH813 wrote:As a side note, it's definitely encountering a buffer underrun when using pulseaudio.
There are hundreds of lines stating "ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred".
Yes, it's usually possible to fix that by tweaking the buffer settings, priorities, sample rates,... but much easier to just bypass it all ;) The default configuration of PulseAudio is generally not optimised for high performance, but for flexibility and reliability with general purpose software (media players, web browsers et al).

For "serious" audio production, Jack Audio System is the way to go, but it can be tricky to set up right (ideally it would be used with an optimised low-latency kernel), and is a bit OTT for most users. Using ALSA directly with Audacity is usually a good compromise.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply