From 9746106c48bf8e2bc4601f38e7f7b40cec938ff2 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 6 May 2016 19:18:30 +0200 Subject: Try to be compatible with celt 0.7.1 and 0.11 --- src/audio.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/audio.c') 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)); -- cgit