Home Information Classes Download Usage Mail List Requirements Tutorial
00001 /***************************************************/ 00019 /***************************************************/ 00020 00021 #if !defined(__RTWVOUT_H) 00022 #define __RTWVOUT_H 00023 00024 #include "WvOut.h" 00025 #include "RtAudio.h" 00026 00027 class RtWvOut : protected WvOut 00028 { 00029 public: 00031 00042 RtWvOut(unsigned int nChannels = 1, MY_FLOAT sampleRate = Stk::sampleRate(), int device = 0, int bufferFrames = RT_BUFFER_SIZE, int nBuffers = 4 ); 00043 00045 ~RtWvOut(); 00046 00048 00051 void start(void); 00052 00054 00057 void stop(void); 00058 00060 unsigned long getFrames( void ) const; 00061 00063 MY_FLOAT getTime( void ) const; 00064 00066 00069 void tick(const MY_FLOAT sample); 00070 00072 00075 void tick(const MY_FLOAT *vector, unsigned int vectorSize); 00076 00078 00081 void tickFrame(const MY_FLOAT *frameVector, unsigned int frames = 1); 00082 00083 protected: 00084 00085 RtAudio *audio; 00086 bool stopped; 00087 int stream; 00088 int bufferSize; 00089 00090 }; 00091 00092 #endif // defined(__RTWVOUT_H)
The Synthesis ToolKit in C++ (STK) |
©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |