private void OnSourceFinished(AudioSourceEventArgs e)
        {
            var finished = this.SourceFinished;

            if (finished != null)
            {
                finished(this, e);
            }
        }
Beispiel #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);
        }
Beispiel #3
0
        protected virtual void OnAudioSourceStopped(AudioSourceEventArgs e)
        {
            var stopped = this.AudioSourceStopped;

            if (stopped != null)
            {
                stopped(this, e);
            }
        }
Beispiel #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);
        }
Beispiel #5
0
 void SourceStoped(object sender, AudioSourceEventArgs e)
 {
     this.users.MarkSilent(this.gablarski.Users[e.Source.OwnerId]);
     this.users.MarkSilent(e.Source);
 }
Beispiel #6
0
 void SourceStarted(object sender, AudioSourceEventArgs e)
 {
     this.users.MarkTalking(this.gablarski.Users[e.Source.OwnerId]);
     this.users.MarkTalking(e.Source);
 }