record.cpp

Extended Recording

00001 //$Id: record.cpp 222 2005-10-27 02:25:43Z tapted $ $URL: file:///var/svn/pub/taptaudio/trunk/tests/record.cpp $
00002 
00003 #include "taptaudio.h"
00004 
00005 #include <SDL.h>
00006 
00007 int main(int argc, char* argv[]) {
00008     //AudioSystem::listDevices();
00009     AudioSystem::setDebugLevel(6);
00010     AudioSystem as (AF_Default, 44100, 1 , 2);
00011     as.startRec();
00012     SDL_Delay(3000);
00013     ASSample *rec = as.stopRec("record.wav", true);
00014     if (!rec)
00015         return 1;
00016     as.mixSample(rec);
00017     SDL_Delay(4000);
00018     return 0;
00019 }
00020 

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