Version 3.2

This commit is contained in:
Gary Scavone
2013-09-25 14:47:10 +02:00
committed by Stephen Sinclair
parent 4b6500d3de
commit 3f126af4e5
443 changed files with 11772 additions and 8060 deletions

43
include/WvOut.h Normal file
View 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)