summaryrefslogtreecommitdiff
path: root/src/soundplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/soundplayer.h')
-rw-r--r--src/soundplayer.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/soundplayer.h b/src/soundplayer.h
index 9a1e811..33ba248 100644
--- a/src/soundplayer.h
+++ b/src/soundplayer.h
@@ -36,6 +36,9 @@
#include "frame.h"
+// Sixe of reingbuffer in samples (16KHz), delay will be half that value
+#define RINGBUFFER 16000
+
class QueueItem {
public:
char *pcm;
@@ -53,14 +56,9 @@ public:
private:
volatile bool running;
- QMutex mutex;
- QSemaphore sem_read;
- QSemaphore sem_write;
-
- QueueItem qi;
-
- QList<QueueItem> queue;
- QList<QueueItem> active;
+ short ringbuffer[RINGBUFFER];
+ int pwrite;
+ int pread;
};
#endif/*__KAIMAN_SOUNDPLAYER_H__*/