mirror of
https://github.com/thestk/stk
synced 2026-01-12 12:31:53 +00:00
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
/********************************************/
|
|
/* WvOut Abstract Class, */
|
|
/* by Tim Stilson, 1996 */
|
|
/* revised by Gary P. Scavone, 1999-2000 */
|
|
/* */
|
|
/* This class can handle multi-channel */
|
|
/* data via the mtick() method. */
|
|
/* */
|
|
/* Currently, WvOut and its subclasses are */
|
|
/* non-interpolating. Thus, the output */
|
|
/* rate is always SRATE (defined in */
|
|
/* Object.h). A future upgrade could add */
|
|
/* interpolation functionality to allow */
|
|
/* output rates different than the STK */
|
|
/* internal processing rate (SRATE). */
|
|
/********************************************/
|
|
|
|
#if !defined(__WvOut_h)
|
|
#define __WvOut_h
|
|
|
|
#include "Object.h"
|
|
#include "StkError.h"
|
|
|
|
#define FILE_BUFFER_SIZE 1024
|
|
|
|
class WvOut : public Object
|
|
{
|
|
protected:
|
|
INT16 *data;
|
|
long data_length;
|
|
long counter;
|
|
long totalCount;
|
|
int channels;
|
|
public:
|
|
WvOut();
|
|
virtual ~WvOut();
|
|
long getCounter();
|
|
MY_FLOAT getTime();
|
|
virtual void tick(MY_FLOAT sample) = 0;
|
|
virtual void mtick(MY_MULTI samples) = 0;
|
|
};
|
|
|
|
#endif // defined(__WvOut_h)
|