Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   Tutorial


RtWvIn.h

00001 /***************************************************/
00019 /***************************************************/
00020 
00021 #ifndef STK_RTWVIN_H
00022 #define STK_RTWVIN_H
00023 
00024 #include "WvIn.h"
00025 #include "RtAudio.h"
00026 
00027 class RtWvIn : public WvIn
00028 {
00029 public:
00031 
00042   RtWvIn( unsigned int nChannels = 1, StkFloat sampleRate = Stk::sampleRate(),
00043           int device = 0, int bufferFrames = RT_BUFFER_SIZE, int nBuffers = 4 );
00044 
00046   ~RtWvIn();
00047 
00049 
00053   void start( void );
00054 
00056 
00060   void stop( void );
00061 
00062 protected:
00063 
00064   void computeFrame( void );
00065 
00066          RtAudio *adc_;
00067   StkFloat *buffer_;
00068   bool stopped_;
00069   unsigned int bufferFrames_;
00070   unsigned int bufferIndex_;
00071 
00072 };
00073 
00074 #endif

The Synthesis ToolKit in C++ (STK)
©1995-2005 Perry R. Cook and Gary P. Scavone. All Rights Reserved.