summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-10-02 07:23:26 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-10-02 07:23:26 +0200
commit74d1553c8b6eff62e8f7491ea9755022c142f8c8 (patch)
tree5f026111082950231d5c72c1c9bb16bd28adea5a
parent95e34d6217bbd4f721b5c8e442c952ff10eb5bf2 (diff)
Sound player ring buffer index fix.
-rw-r--r--src/soundplayer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soundplayer.h b/src/soundplayer.h
index a236d4f..ffec3e9 100644
--- a/src/soundplayer.h
+++ b/src/soundplayer.h
@@ -58,8 +58,8 @@ public:
private:
volatile bool running;
short ringbuffer[RINGBUFFER];
- int pwrite[16];
- int pread;
+ unsigned int pwrite[16];
+ unsigned int pread;
int buffer_size;
};