diff options
Diffstat (limited to 'src/audio.c')
-rw-r--r-- | src/audio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c index a373871..b8a1efb 100644 --- a/src/audio.c +++ b/src/audio.c @@ -207,11 +207,14 @@ static int setup_playback_gst_pipeline(struct cmumble *cm) { cm->audio.celt_mode = celt_mode_create(SAMPLERATE, - SAMPLERATE / 100, NULL); + SAMPLERATE / 100, NULL); celt_header_init(&cm->audio.celt_header, cm->audio.celt_mode, CHANNELS); celt_header_to_packet(&cm->audio.celt_header, cm->audio.celt_header_packet, sizeof(CELTHeader)); + celt_mode_info(cm->audio.celt_mode, CELT_GET_BITSTREAM_VERSION, + &cm->audio.celt_bitstream_version); + return 0; } |