Exemplo n.º 1
0
 public PureToneSource(IPitchGenerator generator, TimeSpan sampleLength, PauseDuration pauseDuration)
 {
     pitchGenerator     = generator;
     timer.Interval     = sampleLength;
     timer.Tick        += TimerOnTick;
     this.pauseDuration = pauseDuration;
 }
Exemplo n.º 2
0
 public static PauseDurationInternal From(PauseDuration duration)
 {
     return new PauseDurationInternal(duration.Minimum, duration.Maximum);
 }
Exemplo n.º 3
0
 public PureToneSource(IPitchGenerator generator, TimeSpan sampleLength, PauseDuration pauseDuration)
 {
     pitchGenerator = generator;
     timer.Interval = sampleLength;
     timer.Tick += TimerOnTick;
     this.pauseDuration = pauseDuration;
 }
Exemplo n.º 4
0
 public static PauseDurationInternal From(PauseDuration duration)
 {
     return(new PauseDurationInternal(duration.Minimum, duration.Maximum));
 }