I would like to record an output of a program with PulseAudio using command line/bash script. It is important not to record every output of the sound card, but only the one of one specific program. I thought I would have to create a new null-sink and than move the programs output to this new sink. Than tell parec to use this specific monitor to record. The first step would be something like this:
pactl load-module module-null-sink sink_name=steam
But how to move the programs output now to this sink? And how to record the specific sink with a bash script?