private void OnSourceFinished(AudioSourceEventArgs e) { var finished = this.SourceFinished; if (finished != null) { finished(this, e); } }
private void OnAudioSourceStopped(object sender, AudioSourceEventArgs e) { if (!UserTalkingCounts || !(e.Source.Id > 0 && e.Source.OwnerId == context.CurrentUser.UserId)) { return; } RemoveTalker(e.Source); }
protected virtual void OnAudioSourceStopped(AudioSourceEventArgs e) { var stopped = this.AudioSourceStopped; if (stopped != null) { stopped(this, e); } }
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); }
void SourceStoped(object sender, AudioSourceEventArgs e) { this.users.MarkSilent(this.gablarski.Users[e.Source.OwnerId]); this.users.MarkSilent(e.Source); }
void SourceStarted(object sender, AudioSourceEventArgs e) { this.users.MarkTalking(this.gablarski.Users[e.Source.OwnerId]); this.users.MarkTalking(e.Source); }