X-Git-Url: https://git.madduck.net/code/pulserecorder.git/blobdiff_plain/015c7497293aa96ee5f389090c3b9645f199efaf..refs/heads/master:/pulserecorder 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.