From 8ee1bc1d4f559ed2a048bf9c1fa5e3a88eb542c5 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sun, 25 Sep 2011 13:42:19 +0200 Subject: Add udp message targets --- src/audio.c | 2 +- src/cmumble.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit