Arduino STK  4.6.2
ArdCommonOut.h
1 #include "Stk.h"
2 #ifdef __STREAMS__
3 
4 #ifndef ARDCOMMONOUT_H
5 #define ARDCOMMONOUT_H
6 
7 #include "WvOut.h"
8 
9 namespace stk {
10 /***************************************************/
20 /***************************************************/
21 
22 class ArdCommonOut : public WvOut
23 {
24  public:
26  ArdCommonOut( unsigned int nChannels = 1 );
27 
30 
31 
33 
38  virtual void tick( const StkFloat sample );
39 
41 
50  virtual void tick( const StkFrames& frames );
51 
52  protected:
53 
54  virtual void write(StkFloat value) = 0;
55  virtual void write(int16_t value) = 0;
56 
57  unsigned int nChannels;
58 };
59 
60 } // stk namespace
61 
62 #endif
63 #endif
STK Common Output for Arduiono.
Definition: ArdCommonOut.h:23
~ArdCommonOut()
Class destructor.
ArdCommonOut(unsigned int nChannels=1)
Default constructor ...
virtual void tick(const StkFloat sample)
Output a single sample to all channels in a sample frame.
virtual void tick(const StkFrames &frames)
Output the StkFrames data.
An STK class to handle vectorized audio data.
Definition: Stk.h:287
STK audio output abstract base class.
Definition: WvOut.h:23
The STK namespace.
Definition: ADSR.h:8