Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial


WvIn.h
1 #ifndef STK_WVIN_H
2 #define STK_WVIN_H
3 
4 #include "Stk.h"
5 
6 namespace stk {
7 
8 /***************************************************/
17 /***************************************************/
18 
19 class WvIn : public Stk
20 {
21 public:
23  unsigned int channelsOut( void ) const { return data_.channels(); };
24 
26 
29  const StkFrames& lastFrame( void ) const { return lastFrame_; };
30 
32  virtual StkFloat tick( unsigned int channel = 0 ) = 0;
33 
35  virtual StkFrames& tick( StkFrames& frames, unsigned int channel = 0 ) = 0;
36 
37 protected:
38 
39  StkFrames data_;
40  StkFrames lastFrame_;
41 
42 };
43 
44 } // stk namespace
45 
46 #endif
const StkFrames & lastFrame(void) const
Return an StkFrames reference to the last computed sample frame.
Definition: WvIn.h:29
unsigned int channelsOut(void) const
Return the number of audio channels in the data or stream.
Definition: WvIn.h:23
The STK namespace.
Definition: ADSR.h:6
STK base class.
Definition: Stk.h:132
STK audio input abstract base class.
Definition: WvIn.h:19
virtual StkFloat tick(unsigned int channel=0)=0
Compute one sample frame and return the specified channel value.
unsigned int channels(void) const
Return the number of channels represented by the data.
Definition: Stk.h:404
An STK class to handle vectorized audio data.
Definition: Stk.h:275

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