record_basic.cpp

Basic Recording

00001 //$Id: record_basic.cpp 195 2005-08-23 05:41:49Z tapted $ $URL: file:///var/svn/pub/taptaudio/trunk/tests/record_basic.cpp $
00002 
00003 #include "taptaudio.h"
00004 
00005 #include <SDL.h>
00006 
00007 int main(int argc, char* argv[]) {
00008     AudioSystem as;
00009     fprintf(stderr, "Sleeping for 1 second while we record...\n");
00010     as.startRec();
00011     SDL_Delay(1000);
00012     ASSample *rec = as.stopRec("recordbasic.wav", true);
00013     if (!rec)
00014         return 1;
00015     fprintf(stderr, "Sleeping for 1 second while we play...\n");
00016     as.mixSample(rec);
00017     SDL_Delay(1000);
00018     return 0;
00019 }
00020 

Generated on Thu Mar 16 11:30:41 2006 for TaptAudio by  doxygen 1.4.6