fixed audio streaming

handTracking
Kyle Johnsen 2021-12-23 09:35:48 -05:00
parent 62c9f07578
commit 4f29376791
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ public class VelVoiceController : VoiceControllerBase
void Start()
{
player = GetComponent<NetworkPlayer>();
VoiceControllerCollection<VelVoiceController>.RegisterVoiceController(this);
init();
}
// Update is called once per frame

View File

@ -54,7 +54,7 @@ namespace DaikonForge.VoIP
protected ulong nextFrameIndex = 0;
protected ulong nextExpectedIndex = 0;
protected virtual void Awake()
protected virtual void init()
{
codec = GetCodec();

View File

@ -83,6 +83,6 @@ public class NetworkPlayer : MonoBehaviour
//base64 encode
string b64_headers = Convert.ToBase64String(headers);
string b64_data = Convert.ToBase64String(data);
manager.sendTo(1, "2," + b64_headers +","+b64_data + ";");
manager.sendTo(0, "2," + b64_headers +","+b64_data + ";");
}
}