Firstly, add some virtual sinks.
pactl load-module module-virtual-sink sink_name=sink1
Secondly, play the sounds, and then, use pulse audio volume control to assign the each program to different sink.
Thirdly, start the recording programs, then, use use pulse audio volume control to assign the each program to different sink.
To remove sinks, find the module index of each sink
pactl list
then,
pactl unload-module [INDEX NUMBER]
Have fun, be free.