The Synthesis ToolKit in C++ (STK)

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
6namespace stk {
7
8/***************************************************/
17/***************************************************/
18
19 class WvIn : public Stk
20{
21public:
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
37protected:
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::StkFrames::channels
unsigned int channels(void) const
Return the number of channels represented by the data.
Definition Stk.h:416
stk::Stk
STK base class.
Definition Stk.h:136
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.