summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-25 13:30:28 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-25 13:32:08 +0200
commitac1df27b9f3eefb19d1ed3425dbb9d8792c1de1b (patch)
tree163e8fe7b2152f6adf36f6596d38e383eff9cd47 /src
parent8082868a636f4a3fa0768b0a2ac4050c57661d4b (diff)
downloadcmumble-ac1df27b9f3eefb19d1ed3425dbb9d8792c1de1b.tar.gz
cmumble-ac1df27b9f3eefb19d1ed3425dbb9d8792c1de1b.tar.bz2
cmumble-ac1df27b9f3eefb19d1ed3425dbb9d8792c1de1b.zip
Fix bitshift for udp type
Its abit unclear in the documentation, whether the first bits refer to lsb or msb.
Diffstat (limited to 'src')
-rw-r--r--src/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c
index eae47e8..eaa4c85 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -43,7 +43,7 @@ pull_buffer(GstAppSink *sink, gpointer user_data)
return GST_FLOW_ERROR;
}
- data[pos++] = (udp_voice_celt_alpha) | (0 << 4);
+ data[pos++] = (udp_voice_celt_alpha << 5) | (0);
encode_varint(&data[pos], &write, ++ctx->sequence, 1024-pos);
pos += write;