You are not logged in.
Hi,
I have a Focusrite Scarlett Solo 3rd Gen Audio interface connected via USB. My headphones are plugged into the audio interface.
Usually, the sound is working perfect with Pulseaudio. However, if I have sound currently playing (e.g. via spotify or via mpv) and then try to record something while playback is still running (e.g. via arecord or simply opening pavucontrol or Telegram Desktop is enough), then the audio gets distorted and is very jarring. If I then pause the playback (while still recording) and wait for a few seconds and then start again, everything is fine again.
I also noticed, that this issue only occurs when the recording uses a different sample rate than the playback. For example I have Spotify running at 44100 Hz. When I keep Spotify playing and issue a arecord -D 'hw:2,0' -f S32_LE --channels=2 --rate 44100 /tmp/out, everything is fine. However, if I change the --rate 44100 to --rate 48000 the distorted sound appears immediately. Now when I stop Spotify briefly while I keep the arecord running, and then unpause it again after a few seconds, the problem is gone as well - even with the different sample rate recording.
I also found out that the size of the distorted noise seems to be correlating to the recording sample rate, i.e. recording with 192000 Hz produces much more distorted noise than with 48000 Hz.
So I suppose this maybe has something to do with bad resampling, but I cannot quite figure out what I am doing wrong. I would appreciate if someone could help me out here.
Output of pulseaudio --dump-conf:
### Aus Konfigurationsdatei wird gelesen: /etc/pulse/daemon.conf ###
daemonize = no
fail = yes
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 5
allow-module-loading = yes
allow-exit = yes
use-pid-file = yes
system-instance = no
local-server-type = user
cpu-limit = no
enable-shm = yes
flat-volumes = no
lock-memory = no
exit-idle-time = 20
scache-idle-time = 20
dl-search-path = /usr/lib/pulse-13.0/modules
default-script-file = /etc/pulse/default.pa
load-default-script-file = yes
log-target =
log-level = notice
resample-method = speex-float-5
avoid-resampling = no
enable-remixing = yes
remixing-use-all-sink-channels = yes
enable-lfe-remixing = no
lfe-crossover-freq = 0
default-sample-format = s32le
default-sample-rate = 48000
alternate-sample-rate = 44100
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 4
default-fragment-size-msec = 25
enable-deferred-volume = yes
deferred-volume-safety-margin-usec = 8000
deferred-volume-extra-delay-usec = 0
shm-size-bytes = 0
log-meta = no
log-time = no
log-backtrace = 0
rlimit-fsize = -1
rlimit-data = -1
rlimit-stack = -1
rlimit-core = -1
rlimit-rss = -1
rlimit-as = -1
rlimit-nproc = -1
rlimit-nofile = 256
rlimit-memlock = -1
rlimit-locks = -1
rlimit-sigpending = -1
rlimit-msgqueue = -1
rlimit-nice = 31
rlimit-rtprio = 9
rlimit-rttime = 200000Offline