diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2016-05-06 19:18:30 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2016-05-07 06:48:37 +0200 |
commit | 9746106c48bf8e2bc4601f38e7f7b40cec938ff2 (patch) | |
tree | ef3773b2df3cdcc7ba330948130a8ca80c183dab /src/audio.c | |
parent | 6615521060870a64f144343ec05956b3b73b5bd5 (diff) | |
download | cmumble-master.tar.gz cmumble-master.tar.bz2 cmumble-master.zip |
Diffstat (limited to 'src/audio.c')
-rw-r--r-- | src/audio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/audio.c b/src/audio.c index 65af769..cf18c78 100644 --- a/src/audio.c +++ b/src/audio.c @@ -211,7 +211,12 @@ setup_playback_gst_pipeline(struct cmumble *cm) { cm->audio.celt_mode = celt_mode_create(SAMPLERATE, SAMPLERATE / 100, NULL); + +#ifdef HAVE_CELT_071 celt_header_init(&cm->audio.celt_header, cm->audio.celt_mode, CHANNELS); +#else + celt_header_init(&cm->audio.celt_header, cm->audio.celt_mode, SAMPLERATE/100, CHANNELS); +#endif celt_header_to_packet(&cm->audio.celt_header, cm->audio.celt_header_packet, sizeof(CELTHeader)); |