A glitch due to another stream starting to play when recording from a single sink input
@tanuk
Submitted by Tanu Kaskinen Assigned to pul..@..op.org
Description
Steps to reproduce:
-
paplay some_file.ogg (the file should be long enough to be able to do the next steps while paplay is running)
-
Check the sink input index of paplay. Here we'll assume that it's 0.
-
parecord --monitor-stream=0 test.wav
-
paplay some_other_file.ogg
-
Stop parecord, and then you can stop the paplay instances too.
-
paplay test.wav
Expected results:
test.wav contains audio from some_file.ogg without glitches.
Actual results:
test.wav contains audio from some_file.ogg, but with a glitch (pause, some repeated audio) at the moment when some_other_file.ogg started to play.
Tested with an alsa sink (support for sink rewinding is likely to be important).