From 4854b887e565b8cab682819affd25fdb9d8f45de Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 20 Sep 2021 09:24:04 +1200 Subject: [PATCH 1/1] Pipe recording experiments --- pulserecorder | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pulserecorder b/pulserecorder index ab0d471..5dad254 100755 --- a/pulserecorder +++ b/pulserecorder @@ -177,8 +177,11 @@ if [ -n "${PAREC_PIPE:-}" ]; then load_module module-pipe-sink "$devname" "$devname" file="$TMPDIR/outfifo" move_source_to_sink $index "$devname" - oggenc --raw -q5 -o "$outfile" "$TMPDIR/outfifo" || : - #pv -pterb "$TMPDIR/outfifo" > $TMPDIR/outfile.wav || : + #oggenc --raw -q5 -o "$outfile" "$TMPDIR/outfifo" || : + pv -pterb "$TMPDIR/outfifo" > $TMPDIR/outfile.wav & + pid=$! + pa_wait_for_event sink-input remove $index >/dev/null + kill $pid else # More traditional approach, which just takes 1:1 time. -- 2.39.5