Arduino STK  4.6.2
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
An STK class to handle vectorized audio data.
Definition: Stk.h:287
unsigned int channels(void) const
Return the number of channels represented by the data.
Definition: Stk.h:415
STK base class.
Definition: Stk.h:144
STK audio input abstract base class.
Definition: WvIn.h:20
virtual StkFloat tick(unsigned int channel=0)=0
Compute one sample frame and return the specified channel value.
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
virtual StkFrames & tick(StkFrames &frames, unsigned int channel=0)=0
Fill the StkFrames object with computed sample frames, starting at the specified channel and return t...
The STK namespace.
Definition: ADSR.h:8