Home Information Classes Download Usage Mail List Requirements Links Tutorial
00001 /***************************************************/ 00019 /***************************************************/ 00020 00021 #if !defined(__RTWVOUT_H) 00022 #define __RTWVOUT_H 00023 00024 #include "WvOut.h" 00025 #include "RtAudio.h" 00026 #include "Thread.h" 00027 00028 class RtWvOut : protected WvOut 00029 { 00030 public: 00031 00033 00044 RtWvOut(unsigned int nChannels = 1, MY_FLOAT sampleRate = Stk::sampleRate(), int device = 0, int bufferFrames = RT_BUFFER_SIZE, int nBuffers = 4 ); 00045 00047 ~RtWvOut(); 00048 00050 00053 void start(void); 00054 00056 00059 void stop(void); 00060 00062 unsigned long getFrames( void ) const; 00063 00065 MY_FLOAT getTime( void ) const; 00066 00068 00071 void tick(const MY_FLOAT sample); 00072 00074 00077 void tick(const MY_FLOAT *vector, unsigned int vectorSize); 00078 00080 00083 void tickFrame(const MY_FLOAT *frameVector, unsigned int frames = 1); 00084 00085 protected: 00086 00087 RtAudio *audio_; 00088 bool stopped_; 00089 int bufferSize_; 00090 00091 }; 00092 00093 #endif // defined(__RTWVOUT_H)
The Synthesis ToolKit in C++ (STK) |
©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |