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