#!/bin/bash # tv-pacat ver 0.9 - Forward audio between audio cards using pacat. # This script depends on pacat-drain-experimental.diff which adds the "--drain" # option. # Send comments and questions to Steven Elliott . # Configure based on card names and acceptable latency. latency=50 source="alsa_input.pci-0000_0d_01.1.analog-stereo" sink="alsa_output.pci-0000_00_1b.0.analog-stereo" pacat -r --latency-msec="$latency" -d "$source" | \ pacat -p --latency-msec="$latency" -d "$sink" --drain & pacat_pid=$! tvtime kill $pacat_pid