--- pyepl-1.1.0.orig/code/hardware/sound/eplSound.h
+++ pyepl-1.1.0/code/hardware/sound/eplSound.h
@@ -49,17 +49,23 @@
long append(MY_TYPE *newdata, long length, int overwrite, float ampFactor);
long consume(MY_TYPE *newdata, long length);
void clear();
+ void clearPlayBuffer();
+ void clearRecBuffer();
int recstart();
int recstop();
int startstream();
- int stopstream();
+ int stopstream(int abort=0);
int getBufferSize();
long getSamplesPlayed();
void resetSamplesPlayed();
int getRecChans();
int getPlayChans();
int getSampleRate();
+ unsigned int getPlayStreamSampleRate();
+ unsigned int getRecStreamSampleRate();
long getBufferUsed();
+ long getPlayStreamLatency();
+ long getRecStreamLatency();
static const int SCALE=32767;
static const unsigned int SAMPLE_RATE=44100;
static const int SAMPLE_SILENCE=0;
@@ -71,10 +77,10 @@
static const long REC_BUF_LEN=60;
static const int NUM_CHANNELS=2;
private:
- RtAudio audio;
- //RtAudio *playaudio;
- //RtAudio *recaudio;
- //int isDuplex;
+ //RtAudio audio;
+ RtAudio *playAudio;
+ RtAudio *recAudio;
+ int isDuplex;
unsigned int playChans;
unsigned int recChans;
//int rate;