protected virtual void OnFrequencyDetected(FrequencyEventArgs args)
 {
     if (FrequencyDetected != null)
     {
         FrequencyDetected(this, args);
     }
 }
Exemplo n.º 2
0
Arquivo: Audio.cs Projeto: komby/vixen
 private void _audioSystem_FrequencyDetected(object sender, FrequencyEventArgs e)
 {
     if (FrequencyDetected != null)
     {
         FrequencyDetected(this, e);
     }
 }
Exemplo n.º 3
0
		private void _audio_FrequencyDetected(object sender, FrequencyEventArgs e)
		{
			if (e.Frequency > 0) {
				var box = FindCheckBox(e.Index.ToString());
				TimeSpan t = TimeSpan.MinValue;
				freqs.TryRemove(e.Index, out t);
				freqs.TryAdd(e.Index, e.Time);
			}
		}
Exemplo n.º 4
0
		protected virtual void OnFrequencyDetected(FrequencyEventArgs args)
		{
			if (FrequencyDetected != null) {
				FrequencyDetected(this, args);
			}
		}
Exemplo n.º 5
0
        private void _audio_FrequencyDetected(object sender, FrequencyEventArgs e)
        {
            if (!detectedActions.ContainsKey(e.Index))
                detectedActions.TryAdd(e.Index, new ConcurrentBag<TimeSpan>() {e.Time});
            else {
                ConcurrentBag<TimeSpan> spans = new ConcurrentBag<TimeSpan>();

                detectedActions.TryGetValue(e.Index, out spans);
                ConcurrentBag<TimeSpan> spans2 = spans;

                spans.Add(e.Time);
                detectedActions.TryUpdate(e.Index, spans, spans2);
            }

            if (this.InvokeRequired)
                this.Invoke(new Vixen.Delegates.GenericValue(_audio_FrequencyDetectedSetText), e);
            else
                _audio_FrequencyDetectedSetText(e);
        }
Exemplo n.º 6
0
 private void _audioSystem_FrequencyDetected(object sender, FrequencyEventArgs e)
 {
     if (FrequencyDetected != null) {
         FrequencyDetected(this, e);
     }
 }