Using RtAudio for audio input is almost identical to the way it is used for playback. Here's the blocking playback example rewritten for recording:
In this example, we pass the address of the stream parameter structure as the second argument of the RtAudio::openStream() function and pass a NULL value for the output stream parameters. In this example, the record() callback function performs no specific operations.
|©2001-2016 Gary P. Scavone, McGill University. All Rights Reserved.|
Maintained by Gary P. Scavone.