Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   Tutorial


RtWvIn.h

00001 /***************************************************/
00024 /***************************************************/
00025 
00026 #ifndef STK_RTWVIN_H
00027 #define STK_RTWVIN_H
00028 
00029 #include "WvIn.h"
00030 #include "RtAudio.h"
00031 
00032 class RtWvIn : protected WvIn
00033 {
00034 public:
00036 
00047   RtWvIn(int nChannels = 1, StkFloat sampleRate = Stk::sampleRate(), int device = 0, int bufferFrames = RT_BUFFER_SIZE, int nBuffers = 2);
00048 
00050   ~RtWvIn();
00051 
00053 
00056   void start(void);
00057 
00059 
00062   void stop(void);
00063 
00065   StkFloat lastOut(void) const;
00066 
00068 
00071   StkFloat tick(void);
00072 
00074 
00077   StkFloat *tick(StkFloat *vector, unsigned int vectorSize);
00078 
00080 
00086   StkFrames& tick( StkFrames& frames, unsigned int channel = 1 );
00087 
00089   const StkFloat *lastFrame(void) const;
00090 
00092 
00095   const StkFloat *tickFrame(void);
00096 
00098 
00101   StkFloat *tickFrame(StkFloat *frameVector, unsigned int frames);
00102 
00104 
00109   StkFrames& tickFrame( StkFrames& frames );
00110 
00111 protected:
00112 
00113          RtAudio *audio_;
00114   bool stopped_;
00115   long counter_;
00116 
00117 };
00118 
00119 #endif

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