예제 #1
0
    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));
    }
예제 #2
0
 void OnBeginTalk(PointerEventData f)
 {
     MicrophoneMgr.TryStartRecording();
 }
예제 #3
0
 public static MicrophoneMgr GetInstance()
 {
     if (instance == null)
         instance = new MicrophoneMgr();
     return instance;
 }