void OnEndTalk(PointerEventData f) { AudioClip ap; int length; MicrophoneMgr.EndRecording(out length, out ap); MessageMgr.SendObject(MessageData.Init(new MessageData(), WavUtility.FromAudioClip(ap), this.UserName)); }
void OnBeginTalk(PointerEventData f) { MicrophoneMgr.TryStartRecording(); }
public static MicrophoneMgr GetInstance() { if (instance == null) instance = new MicrophoneMgr(); return instance; }