示例#1
0
        void ClientIDStreamIDUpdated(RealtimeAvatarVoiceModel model)
        {
            if (isOwnedLocally)
            {
                return;
            }

            // Connect the new audio stream
            ConnectAudioStream();
        }
示例#2
0
        void SetModel(RealtimeAvatarVoiceModel model)
        {
            if (_model != null)
            {
                _model.clientIDStreamIDUpdated -= ClientIDStreamIDUpdated;
            }
            DisconnectAudioStream();

            _model = model;

            ConnectAudioStream();
            if (_model != null)
            {
                _model.clientIDStreamIDUpdated += ClientIDStreamIDUpdated;
            }
        }