mirror of
https://github.com/thestk/stk
synced 2026-02-04 16:46:15 +00:00
Version 3.0
This commit is contained in:
committed by
Stephen Sinclair
parent
7c0ee03d60
commit
868787a5f9
44
STK/RTWvIn.h
Normal file
44
STK/RTWvIn.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/*******************************************/
|
||||
/* RTWvIn Input Class, */
|
||||
/* by Gary P. Scavone, 1999 */
|
||||
/* */
|
||||
/* This object inherits from WvIn and is */
|
||||
/* used to read in realtime 16-bit data */
|
||||
/* from a computer's audio port. */
|
||||
/* */
|
||||
/* NOTE: This object is NOT intended for */
|
||||
/* use in achieving simultaneous realtime */
|
||||
/* audio input/output (together with */
|
||||
/* RTWvOut). Under certain circumstances */
|
||||
/* such a scheme is possible, though you */
|
||||
/* should definitely know what you are */
|
||||
/* doing before trying. For safer "full- */
|
||||
/* duplex" operation, use the RTDuplex */
|
||||
/* class. */
|
||||
/*******************************************/
|
||||
|
||||
#if !defined(__RTWvIn_h)
|
||||
#define __RTWvIn_h
|
||||
|
||||
#include "Object.h"
|
||||
#include "RTSoundIO.h"
|
||||
#include "WvIn.h"
|
||||
|
||||
class RTWvIn : public WvIn
|
||||
{
|
||||
protected:
|
||||
RTSoundIO *soundIO;
|
||||
short *rtdata;
|
||||
MY_FLOAT gain;
|
||||
public:
|
||||
RTWvIn(MY_FLOAT srate, short chans);
|
||||
~RTWvIn();
|
||||
void normalize();
|
||||
void normalize(MY_FLOAT newPeak);
|
||||
void addPhaseOffset(MY_FLOAT anAngle);
|
||||
void setLooping(int aLoopStatus);
|
||||
void getMoreData();
|
||||
int informTick();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user