diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-09-21 20:41:25 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-09-21 20:41:25 +0200 |
commit | 8cb96bb66d3de04a3dae3e2c886c4a49736f1b65 (patch) | |
tree | b43b358f6313bae8f24fa290c0badb963409d2ae /src/soundplayer.cc | |
parent | 05449ea487649e14ef02ca88f48ca3de5ab1f909 (diff) |
Centralise all media configuration values in mediaconfig.h
Diffstat (limited to 'src/soundplayer.cc')
-rw-r--r-- | src/soundplayer.cc | 4 |
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; |