Recording from monitor has glitches when playing other sounds.
Submitted by Dario Nieuwenhuis
Assigned to pul..@..op.org
Description
Created attachment 129350 tgz containing sine.wav, silence.wav, recorded.wav
Attached in the .tar.gz are 3 files:
- sine.wav: 30-second sine wave
- silence.wav: 0.1-second silence
- recorded.wav: the glitched recorded result.
How to reproduce:
- run: paplay sine.wav
- While the sine wave is playing, in another terminal run: parec -d $MONITOR --file-format=wav > recorded.wav where $MONITOR is your monitor device, in my case it's alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
- While recording, in another terminal run: paplay silence.wav
- stop parec with Control+C
- stop the paplay sine.wav
- Listen to recorded.wav: you should hear glitches similar to my recorded.wav. The sine wave plays, but really short periods of silence are inserted.
Some more interesting things:
- If you play silence.wav many times, you get more glitches in the recording. Every play seems to trigger 1-2 glitches.
- Any sound playing triggers the glitches - system sounds for example.
Attachment 129350, "tgz containing sine.wav, silence.wav, recorded.wav":
pulseaudio-bug.tar.gz