aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/VoiceChat/VoicePacketHeader.cs
diff options
context:
space:
mode:
authorSean Dague2008-03-13 12:29:56 +0000
committerSean Dague2008-03-13 12:29:56 +0000
commite7076d3d1598d32ce6fac56be766eadba24efd0e (patch)
tree6787fa41207d9fbdc2440752b34c172252b501a7 /OpenSim/Region/Environment/Modules/VoiceChat/VoicePacketHeader.cs
parent* Change opensim.ini.example guidance on asset_database setting to be "local"... (diff)
downloadopensim-SC_OLD-e7076d3d1598d32ce6fac56be766eadba24efd0e.zip
opensim-SC_OLD-e7076d3d1598d32ce6fac56be766eadba24efd0e.tar.gz
opensim-SC_OLD-e7076d3d1598d32ce6fac56be766eadba24efd0e.tar.bz2
opensim-SC_OLD-e7076d3d1598d32ce6fac56be766eadba24efd0e.tar.xz
remove the rex based voice chat. No current client implements this,
and a seperate voice server approach compatible with SLVoice is needed here.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/VoiceChat/VoicePacketHeader.cs65
1 files changed, 0 insertions, 65 deletions
diff --git a/OpenSim/Region/Environment/Modules/VoiceChat/VoicePacketHeader.cs b/OpenSim/Region/Environment/Modules/VoiceChat/VoicePacketHeader.cs
deleted file mode 100644
index 3645bcd..0000000
--- a/OpenSim/Region/Environment/Modules/VoiceChat/VoicePacketHeader.cs
+++ /dev/null
@@ -1,65 +0,0 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSim Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.Text;
31
32namespace OpenSim.Region.Environment.Modules.VoiceChat
33{
34 public class VoicePacketHeader
35 {
36 public byte type;
37 public int length;
38
39 public void Parse(byte[] data)
40 {
41 int offset = 0;
42 type = data[offset++];
43
44 length = data[offset++];
45 length |= data[offset++] << 8;
46 length |= data[offset++] << 16;
47 length |= data[offset++] << 24;
48 }
49
50 public void CopyTo(byte[] data, int offset)
51 {
52 data[offset + 0] = type;
53
54 data[offset + 1] = (byte)(length & 0x000000FF);
55 data[offset + 2] = (byte)((length & 0x0000FF00) >> 8);
56 data[offset + 3] = (byte)((length & 0x00FF0000) >> 16);
57 data[offset + 4] = (byte)((length & 0xFF000000) >> 24);
58 }
59
60 public int GetLength()
61 {
62 return 5;
63 }
64 }
65}