mirror of
https://github.com/thestk/stk
synced 2026-02-07 17:56:16 +00:00
Version 3.0
This commit is contained in:
committed by
Stephen Sinclair
parent
7c0ee03d60
commit
868787a5f9
38
STK/RawWvOut.h
Normal file
38
STK/RawWvOut.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/*******************************************/
|
||||
/* RawWvOut Output Class */
|
||||
/* by Gary P. Scavone, 1999 */
|
||||
/* */
|
||||
/* This object spits samples into a raw */
|
||||
/* 16-bit data (signed integer) file. */
|
||||
/* */
|
||||
/* STK RawWave files are assumed to be */
|
||||
/* monaural and big-endian. */
|
||||
/*******************************************/
|
||||
|
||||
#include "Object.h"
|
||||
#include "WvOut.h"
|
||||
|
||||
#if !defined(__RawWvOut_h)
|
||||
#define __RawWvOut_h
|
||||
|
||||
#define RAW_BUFFER_SIZE 1024
|
||||
|
||||
class RawWvOut : public WvOut
|
||||
{
|
||||
protected:
|
||||
FILE *fd;
|
||||
INT16 data[RAW_BUFFER_SIZE];
|
||||
long counter;
|
||||
long totalCount;
|
||||
int channels;
|
||||
public:
|
||||
RawWvOut(char *fileName);
|
||||
RawWvOut(int chans, char *fileName);
|
||||
~RawWvOut();
|
||||
long getCounter();
|
||||
MY_FLOAT getTime();
|
||||
void tick(MY_FLOAT sample);
|
||||
void mtick(MY_MULTI samples);
|
||||
};
|
||||
|
||||
#endif // defined(__RawWvOut_h)
|
||||
Reference in New Issue
Block a user