Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial


WvIn.h

00001 /***************************************************/
00018 /***************************************************/
00019 
00020 #ifndef STK_WVIN_H
00021 #define STK_WVIN_H
00022 
00023 #include "Stk.h"
00024 #include <vector>
00025 
00026 class WvIn : public Stk
00027 {
00028 public:
00030   WvIn();
00031 
00033   virtual ~WvIn();
00034 
00036   unsigned int getChannels( void ) const { return data_.channels(); };
00037 
00039 
00042   StkFloat lastOut( void ) const;
00043 
00045 
00048   const StkFrames& lastFrame( void ) const { return lastOutputs_; };
00049 
00051 
00054   StkFloat tick( void );
00055 
00057 
00064   StkFrames& tick( StkFrames& frames, unsigned int channel = 0 );
00065 
00067 
00073   StkFrames& tickFrame( StkFrames& frames );
00074 
00075 protected:
00076 
00077   // This abstract function must be implemented in all subclasses.
00078   // It is used to get around a C++ problem with overloaded virtual
00079   // functions.
00080   virtual void computeFrame( void ) = 0;
00081 
00082   StkFrames data_;
00083   StkFrames lastOutputs_;
00084 
00085 };
00086 
00087 #endif

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