Pops and crackles on recording with audacity

Support with sound and multimedia cards on GhostBSD
Post Reply
nevets
Posts: 163
Joined: Tue Jun 23, 2020 3:54 am

Pops and crackles on recording with audacity

Post 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
User avatar
neville
Developer
Posts: 144
Joined: Fri Aug 13, 2021 10:27 am
Location: Japan

Re: Pops and crackles on recording with audacity

Post 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
nevets
Posts: 163
Joined: Tue Jun 23, 2020 3:54 am

Re: Pops and crackles on recording with audacity

Post 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
User avatar
neville
Developer
Posts: 144
Joined: Fri Aug 13, 2021 10:27 am
Location: Japan

Re: Pops and crackles on recording with audacity

Post by neville »

Nice. I once had the same problem you did and I set my microphone to zero and that fixed it
Post Reply