예제 #1
0
 public PureToneSource(IPitchGenerator generator, TimeSpan sampleLength, PauseDuration pauseDuration)
 {
     pitchGenerator     = generator;
     timer.Interval     = sampleLength;
     timer.Tick        += TimerOnTick;
     this.pauseDuration = pauseDuration;
 }
예제 #2
0
 public PureToneSource(IPitchGenerator generator, TimeSpan sampleLength, PauseDuration pauseDuration)
 {
     pitchGenerator = generator;
     timer.Interval = sampleLength;
     timer.Tick += TimerOnTick;
     this.pauseDuration = pauseDuration;
 }