Page 1 of 1

Pops and crackles on recording with audacity

Posted: Tue Oct 08, 2024 12:23 am
by nevets
Recently Audacity audio live stream recording has lots of pops and crackles.
I increased the Audacity buffer latency [default 100ms] to 300ms but it's still an issue.
Is there a hardware setting I may adjust?

cat /dev/sndstat
Installed devices:
pcm0: <Realtek ALC887 (Rear Analog)> (play/rec) default
pcm1: <Realtek ALC887 (Front Analog)> (play/rec)

sysctl hw.snd.default_unit
hw.snd.default_unit: 0

mixer -d pcm0
default_unit: 1 -> 0
pcm0:mixer: <Realtek ALC887 (Rear Analog)> on hdaa0 (play/rec) (default)
vol = 0.84:0.84 pbk
pcm = 1.00:1.00 pbk
speaker = 0.74:0.74 rec
line = 0.01:0.01 rec
mic = 0.67:0.67 rec src
mix = 0.74:0.74 rec
rec = 0.35:0.35 pbk
igain = 0.00:0.00 pbk
ogain = 1.00:1.00 pbk

mixer -d pcm1
default_unit: 0 -> 1
pcm1:mixer: <Realtek ALC887 (Front Analog)> on hdaa0 (play/rec) (default)
vol = 0.84:0.84 pbk
pcm = 1.00:1.00 pbk
rec = 0.35:0.35 pbk
igain = 0.00:0.00 pbk
ogain = 1.00:1.00 pbk
monitor = 0.67:0.67 rec src

Re: Pops and crackles on recording with audacity

Posted: Tue Oct 08, 2024 10:00 am
by neville
Open your sound mixer and turn your mic down to zero and see if that helps. If you're using xfce GhostBSD you'll need to install the xfce4-mixer package to do this

Re: Pops and crackles on recording with audacity

Posted: Tue Oct 15, 2024 6:49 am
by nevets
Thanks Neville....
I used mixer pkg controls to restore 'defaults' on both pcm0 and pcm1, and that seemed to do the trick.
Example:
To set default mixer to front analogue:
# mixer -d 1
To set values for this [pcm1]:
# mixer vol.volume=0.84:0.84 pcm.volume=1.00:1.00 line.volume=0.01:0.01 mic.volume=0.67:0.67 mic.volume=0.67:0.67 mix.volume=0.74:0.74 rec.volume=0.35:0.35 monitor.volume=0.67:0.67

Re: Pops and crackles on recording with audacity

Posted: Tue Oct 15, 2024 7:38 am
by neville
Nice. I once had the same problem you did and I set my microphone to zero and that fixed it