Use a separate function to create and connect a PulseAudio record stream