summaryrefslogtreecommitdiff
path: root/src/audio.c
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-12-02 18:45:49 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-12-04 12:10:09 +0100
commitf5378b3cd99c51b124bcbd3f50ffcaef8aad5fdd (patch)
tree6bf3d2a7f77d082d2518412840c5367637547a82 /src/audio.c
parentfe5f155c0b27f00a31a4678cbd0a7e71fa3c46ef (diff)
downloadcmumble-f5378b3cd99c51b124bcbd3f50ffcaef8aad5fdd.tar.gz
cmumble-f5378b3cd99c51b124bcbd3f50ffcaef8aad5fdd.tar.bz2
cmumble-f5378b3cd99c51b124bcbd3f50ffcaef8aad5fdd.zip
Make use of CELT_GET_BITSTREAM_VERSION
Instead of hardcoding this.
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c5
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;
}