diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/audio.c | 5 | ||||
-rw-r--r-- | src/audio.h | 5 |
2 files changed, 10 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)); diff --git a/src/audio.h b/src/audio.h index 1e1c47c..0f7aaa2 100644 --- a/src/audio.h +++ b/src/audio.h @@ -8,8 +8,13 @@ #include <gst/app/gstappsink.h> #include <gst/app/gstappbuffer.h> +#ifdef HAVE_CELT071 +#include <celt071/celt.h> +#include <celt071/celt_header.h> +#else #include <celt/celt.h> #include <celt/celt_header.h> +#endif struct cmumble_audio { GstElement *record_pipeline; |