Пример #1
0
        private void OnSourceFinished(AudioSourceEventArgs e)
        {
            var finished = this.SourceFinished;

            if (finished != null)
            {
                finished(this, e);
            }
        }
Пример #2
0
        private void OnAudioSourceStopped(object sender, AudioSourceEventArgs e)
        {
            if (!UserTalkingCounts || !(e.Source.Id > 0 && e.Source.OwnerId == context.CurrentUser.UserId))
            {
                return;
            }

            RemoveTalker(e.Source);
        }
Пример #3
0
        protected virtual void OnAudioSourceStopped(AudioSourceEventArgs e)
        {
            var stopped = this.AudioSourceStopped;

            if (stopped != null)
            {
                stopped(this, e);
            }
        }
Пример #4
0
        private void OnAudioSourceStarted(object sender, AudioSourceEventArgs e)
        {
            if ((!UserTalkingCounts && e.Source.OwnerId == context.CurrentUser.UserId) ||
                this.context.Users[e.Source.OwnerId].CurrentChannelId != this.context.CurrentUser.CurrentChannelId)
            {
                return;
            }

            AddTalker(e.Source);
        }
Пример #5
0
 void SourceStoped(object sender, AudioSourceEventArgs e)
 {
     this.users.MarkSilent(this.gablarski.Users[e.Source.OwnerId]);
     this.users.MarkSilent(e.Source);
 }
Пример #6
0
 void SourceStarted(object sender, AudioSourceEventArgs e)
 {
     this.users.MarkTalking(this.gablarski.Users[e.Source.OwnerId]);
     this.users.MarkTalking(e.Source);
 }