mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
Version 3.2
This commit is contained in:
committed by
Stephen Sinclair
parent
4b6500d3de
commit
3f126af4e5
43
include/WvOut.h
Normal file
43
include/WvOut.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/********************************************/
|
||||
/* 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)
|
||||
Reference in New Issue
Block a user