|
|
LooprecordSummaryAn example program that plays back audio through a PC sound card, and records at the same time (full duplex).It uses the portaudio library. The example program compiles with gcc under MinGW (Windows), and should also work on other platforms supporting portaudio (Linux, Mac, ...) if the makefile is modified. By default, it uses one audio channel, although the number of channels can be easily changed by editing the source code. PurposeThe program was written to support signal processing experiments without expensive hardware.DownloadStarting the programMost users will want to use looprecord.exe from a command line prompt, although it can be also started without arguments (simply double-click).By default, when started without arguments, it will play back the contents from play.float, and write recorded data into rec.float. The generate_testtone function gives an example, how to write float numbers in binary format to disk. The format works efficiently with Matlab Command line arguments
See also
© Markus Nentwig 2007-2008 The content of this page is provided without any warranty and may not be reproduced without permission. Comments? Questions?Please send me a mail! mnentwig@elisanet.fi |