I am trying to create 2 simple programs that are basically the parec-simple and pacat-simple examples from the pulseaudio documentation. The only difference is that I would like to create a null sink, equivalent of
pactl load-module module-null-sink sink_name=steam
(see example here) which I would then use instead of the default device on both ends - playback and record.
My question is: how can I create this null sink using pulseaudio's C API? From what I saw, pulse/simple.h does not contain any function definition to do this, so I guess I would have to use libpulse.