fixed issue
parent
92f3864855
commit
739bc1d9d8
|
|
@ -127,7 +127,7 @@ public class PlayerController : NetworkObject, Dissonance.IDissonancePlayer
|
||||||
byte[] lastAudioIdBytes = BitConverter.GetBytes(lastAudioId++);
|
byte[] lastAudioIdBytes = BitConverter.GetBytes(lastAudioId++);
|
||||||
Buffer.BlockCopy(lastAudioIdBytes, 0, toSend, 0, 4);
|
Buffer.BlockCopy(lastAudioIdBytes, 0, toSend, 0, 4);
|
||||||
Buffer.BlockCopy(data.Array, data.Offset, toSend, 4, data.Count);
|
Buffer.BlockCopy(data.Array, data.Offset, toSend, 4, data.Count);
|
||||||
owner.sendGroupMessage(this,"close", "a", toSend, true); //send voice data unreliably
|
owner.sendGroupMessage(this,"close", "a", toSend, false); //send voice data unreliably
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1820,8 +1820,9 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: 03a4d4e1a7fd74c7ab2eccca4ce168db, type: 3}
|
m_Script: {fileID: 11500000, guid: 03a4d4e1a7fd74c7ab2eccca4ce168db, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
host: 127.0.0.1
|
host: neko.ugavel.com
|
||||||
port: 3290
|
port: 3290
|
||||||
|
udpConnected: 0
|
||||||
userid: -1
|
userid: -1
|
||||||
room:
|
room:
|
||||||
playerPrefab: {fileID: 6139051692386484099, guid: d4158ab9c4a204cdbba28d3273fc1fb3, type: 3}
|
playerPrefab: {fileID: 6139051692386484099, guid: d4158ab9c4a204cdbba28d3273fc1fb3, type: 3}
|
||||||
|
|
|
||||||
|
|
@ -354,8 +354,11 @@ public class NetworkManager : MonoBehaviour
|
||||||
//I don't yet have a UDP connection
|
//I don't yet have a UDP connection
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
RemoteEndPoint = new IPEndPoint(
|
var addresses = Dns.GetHostAddresses(host);
|
||||||
IPAddress.Parse(host), port);
|
Debug.Assert(addresses.Length > 0);
|
||||||
|
RemoteEndPoint = new IPEndPoint(addresses[0], port);
|
||||||
|
|
||||||
|
|
||||||
udpSocket = new Socket(AddressFamily.InterNetwork,
|
udpSocket = new Socket(AddressFamily.InterNetwork,
|
||||||
SocketType.Dgram, ProtocolType.Udp);
|
SocketType.Dgram, ProtocolType.Udp);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue