diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-25 13:42:19 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-25 13:42:45 +0200 |
commit | 8ee1bc1d4f559ed2a048bf9c1fa5e3a88eb542c5 (patch) | |
tree | 1298bbfe2a3219b33bf4b668d8bdb0f081d45d5b /src | |
parent | ac1df27b9f3eefb19d1ed3425dbb9d8792c1de1b (diff) | |
download | cmumble-8ee1bc1d4f559ed2a048bf9c1fa5e3a88eb542c5.tar.gz cmumble-8ee1bc1d4f559ed2a048bf9c1fa5e3a88eb542c5.tar.bz2 cmumble-8ee1bc1d4f559ed2a048bf9c1fa5e3a88eb542c5.zip |
Add udp message targets
Diffstat (limited to 'src')
-rw-r--r-- | src/audio.c | 2 | ||||
-rw-r--r-- | src/cmumble.h | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c index eaa4c85..81335d3 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 << 5) | (0); + data[pos++] = (udp_voice_celt_alpha << 5) | (udp_normal_talking); encode_varint(&data[pos], &write, ++ctx->sequence, 1024-pos); pos += write; diff --git a/src/cmumble.h b/src/cmumble.h index a1950b8..8caa9ef 100644 --- a/src/cmumble.h +++ b/src/cmumble.h @@ -60,6 +60,14 @@ enum udp_message_type { udp_voice_celt_beta }; +enum udp_message_target { + udp_normal_talking = 0, + udp_whisper_to_channel = 1, + udp_direct_whisper_min = 2, + udp_direct_whisper_max = 30, + udp_server_loopback = 31 +}; + void cmumble_protocol_init(struct cmumble_context *ctx); |