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
stk::StkFrames
An STK class to handle vectorized audio data.
Definition Stk.h:279
stk::Stk::Stk
Stk(void)
Default constructor.
stk::WvIn
STK audio input abstract base class.
Definition WvIn.h:20
stk::WvIn::tick
virtual StkFloat tick(unsigned int channel=0)=0
Compute one sample frame and return the specified channel value.
stk::WvIn::tick
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...
stk::WvIn::lastFrame
const StkFrames & lastFrame(void) const
Return an StkFrames reference to the last computed sample frame.
Definition WvIn.h:29
stk::WvIn::channelsOut
unsigned int channelsOut(void) const
Return the number of audio channels in the data or stream.
Definition WvIn.h:23
stk
The STK namespace.
Definition ADSR.h:6

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