Crackling/clicks heard on all files

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity 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.
Fiddler64
Posts: 16
Joined: Sat Jan 16, 2016 3:33 pm
Operating System: Linux *buntu

Crackling/clicks heard on all files

Post by Fiddler64 » Sat Jan 16, 2016 3:57 pm

Hi. I've been using Audacity for a few years on Windows and successfully did so on Linux Mint 17 for a few months. Then all of a sudden (I don't know what caused it) it started to malfunction. All files, whether old or new, imported audio formats or recorded directly with a mike, are full of clicks and crackles. If I then export the file as an audio file, these clicks and crackles are no longer audible. But it does make it impossible to work with. The programme also crashes spectacularly frequently, with no apparent reason. I recently updated to V 2.1.1 hoping it would resolve these issues, but no such luck. Any ideas?

Audacity Version: 2.1.1
Operating System: Linux Mint 17.1 Cinnamon 64-bit
Cinnamon Version: 2.4.8
Linux Kernel: 3.13.0-37
Processor: AMD E-350 APU with Radeon HD Graphics x 2
Memory: 3.4 GiB
Hard Drive: 476.3 GB

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

Re: Crackling/clicks heard on all files

Post by steve » Sat Jan 16, 2016 4:02 pm

What are your "Latency" settings in "Edit > Preferences > Recording"? The default "Audio to buffer" is 100. Smaller values may cause crackling.
I presume that you are not using Jack?
In the device toolbar, try setting the playback device to the "hw" option.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Fiddler64
Posts: 16
Joined: Sat Jan 16, 2016 3:33 pm
Operating System: Linux *buntu

Re: Crackling/clicks heard on all files

Post by Fiddler64 » Sat Jan 16, 2016 4:37 pm

Thanks for your reply Steve.

I've just tried playing with the latency settings, but it doesn't seem to change anything. Also tried all the playback options on the device toolbar, also to no avail.

No jack; usually I record in WAV on a zoom H4N then import to Audacity from the SD Card, although to test it I've also tried connecting a mike direct through the jack and I have the same problem. It seems that the crackles/clicks/dropouts are a problem only on playback, because as I say when I then export as an audio format such as WAV or MP3 they disappear.

Could it be a problem with ALSA?

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

Re: Crackling/clicks heard on all files

Post by steve » Sat Jan 16, 2016 4:42 pm

Fiddler64 wrote:Could it be a problem with ALSA?
That's unlikely if playback is ok in other applications.
Have you tried the "hw" option as suggested?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Fiddler64
Posts: 16
Joined: Sat Jan 16, 2016 3:33 pm
Operating System: Linux *buntu

Re: Crackling/clicks heard on all files

Post by Fiddler64 » Sat Jan 16, 2016 5:09 pm

Yes I have. I have a choice of HD-Audio generic HDMI 0(hw:0,3); HDA ATI SB: ALC662 rev1 Analogue (hw:1,0); HDMI; pulse and default. I've tried all of them and nothing works. The latency was set to 0 but I've changed that to 100 and it still doesn't work.

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

Re: Crackling/clicks heard on all files

Post by steve » Sat Jan 16, 2016 5:51 pm

Fiddler64 wrote:Audacity Version: 2.1.1
I presume that is a typo (you can check the version number in "Help > About Audacity").

The fact that it was working and then it wasn't indicates that "something" has changed. We need to try and work out "what".
Are you running short of disk space?
Have you added or changed any hardware?
Are you running other programs at the same time?
Are you using the same audio output?
Anything you can think of that may have changed?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Fiddler64
Posts: 16
Joined: Sat Jan 16, 2016 3:33 pm
Operating System: Linux *buntu

Re: Crackling/clicks heard on all files

Post by Fiddler64 » Sat Jan 16, 2016 6:16 pm

No typo, I've rechecked and it's definitely 2.1.1

I was running out of disk space, and thought that might be the problem, so I offloaded a load of files to an external drive, now I'm using about 225 GB of a total of 488 GB.

No modifications to the hardware.

The problem occurs whether or not I run other programs at the same time. (I think I'm right about that, after I've posted I'll close this browser and try it out to make sure.)

When you talk about the same audio output, I'm not sure what you mean? I usually use VLC to play my audio files, either through the speakers or headphones. Audacity plays through those as well.

The only things that may have changed are that 1) I regularly install system updates on my computer 2) I may possibly have inadvertently changed some parameters in Audacity, but I've tried playing with a lot of settings and really get the impression that this is a bug, especially as it crashes so often.

Don't forget that this problem started before I updated to the current version, so I'm presuming this is a compatibility issue between a Mint update and Audacity. Does that seem a reasonable assumption?

Fiddler64
Posts: 16
Joined: Sat Jan 16, 2016 3:33 pm
Operating System: Linux *buntu

Re: Crackling/clicks heard on all files

Post by Fiddler64 » Sat Jan 16, 2016 6:21 pm

I've just checked if it still happens with no other programmes running - it does.

Also, I've noted that the crackling/clicks are inconsistent, i.e. they occur at different points each time the file is played back. So it's not a corruption of the file itself.

cyrano
Posts: 2629
Joined: Fri Apr 17, 2015 11:54 pm
Operating System: macOS 10.13 High Sierra

Re: Crackling/clicks heard on all files

Post by cyrano » Sat Jan 16, 2016 7:13 pm

Have you tried disabling HDMI?

In my experience, this is a very confusing option that sometimes interferes with the usual line outputs. I once spent almost a week troubleshooting a USB audio interface on one of the first laptops with a HDMI output. That one wasn't even capable of outputting audio over HDMI.

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

Re: Crackling/clicks heard on all files

Post by steve » Sun Jan 17, 2016 12:27 pm

Fiddler64 wrote:I've rechecked and it's definitely 2.1.1
I didn't think that Mint had 2.1.1 yet, or did you install it some other way than from the standard repository?
Fiddler64 wrote:When you talk about the same audio output, I'm not sure what you mean?
It would appear that your computer has both Realtek ALC662 and HDMI.
Is it a laptop computer?
Where does the sound come out?

If you don't use the HDMI audio you can try disabling that as cyrano suggested, and if you don't use bluetooth you could try disabling that. (I've known cases where either of these can interfere with the sound card).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply