Esempio n. 1
0
    private void init()
    {
        if (_init)
        {
            return;
        }
        _stream = new AudioStream(AudioDefine.FREQUENCY * 10, AudioDefine.FREQUENCY, AudioDefine.FREQUENCY * 10);
        AudioClip clip = AudioClip.Create("sadfsf", 80000, 1, 8000, false);

        _chatManager = new ChatManager(_stream, clip);
        _record      = new AudioRecord();
        _record.Init(_chatManager);
        audioSource.clip = _stream.Clip;
//		audioSource.clip = clip;
        audioSource.Play();
        _init = true;
    }