From: martin f. krafft Date: Sun, 19 Sep 2021 21:24:04 +0000 (+1200) Subject: Pipe recording experiments X-Git-Url: https://git.madduck.net/code/pulserecorder.git/commitdiff_plain/4854b887e565b8cab682819affd25fdb9d8f45de?ds=inline Pipe recording experiments --- 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.