summaryrefslogtreecommitdiff
path: root/src/soundplayer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soundplayer.cc')
-rw-r--r--src/soundplayer.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/soundplayer.cc b/src/soundplayer.cc
index 0f4fec2..024dea3 100644
--- a/src/soundplayer.cc
+++ b/src/soundplayer.cc
@@ -30,6 +30,8 @@
#include <ao/ao.h>
#include <sndfile.h>
+#include "mediaconfig.h"
+
#define BUFSZ 512
SoundPlayer::SoundPlayer()
@@ -53,7 +55,7 @@ void SoundPlayer::run()
ao_sample_format sf;
memset(&sf, 0, sizeof(sf));
sf.bits = 16;
- sf.rate = 16000;
+ sf.rate = SAMPLERATE;
sf.channels = 1;
sf.byte_format = AO_FMT_NATIVE;