mirror of
https://github.com/thestk/stk
synced 2026-01-20 07:51:53 +00:00
Version 3.2
This commit is contained in:
committed by
Stephen Sinclair
parent
4b6500d3de
commit
3f126af4e5
36
include/RtWvOut.h
Normal file
36
include/RtWvOut.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/*******************************************/
|
||||
/* Real-Time Audio Output Class, */
|
||||
/* by Perry R. Cook, 1996 */
|
||||
/* Revised by Gary P. Scavone, 2000 */
|
||||
/* */
|
||||
/* This object opens a realtime soundout */
|
||||
/* device, and pokes buffers of samples */
|
||||
/* into it. */
|
||||
/*******************************************/
|
||||
|
||||
#if !defined(__RtWvOut_h)
|
||||
#define __RtWvOut_h
|
||||
|
||||
#include "Object.h"
|
||||
#include "WvOut.h"
|
||||
#include "RtAudio.h"
|
||||
|
||||
class RtWvOut : public WvOut
|
||||
{
|
||||
protected:
|
||||
RtAudio *sound_dev;
|
||||
public:
|
||||
RtWvOut(int chans = 1, int device = -1);
|
||||
~RtWvOut();
|
||||
void tick(MY_FLOAT sample);
|
||||
void mtick(MY_MULTI samples);
|
||||
|
||||
#if (defined(__OS_Win_) )
|
||||
void stopPlay();
|
||||
void startPlay();
|
||||
void stopRecord();
|
||||
void startRecord();
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // defined(__RtWvOut_h)
|
||||
Reference in New Issue
Block a user