Example of interfacing PortAudio real time audio with file I/O