示例#1
0
 public MixProvider()
 {
     for (int i = 0; i < genArr.Length; i++)
     {
         genArr[i] = new WaveGenerator(WaveType.Square);
     }
 }
示例#2
0
 public MixProvider(int channelCount)
 {
     if (channelCount < 1)
     {
         channelCount = 1;
     }
     if (channelCount > Config.Channel.Count)
     {
         channelCount = Config.Channel.Count;
     }
     genArr = new WaveGenerator[channelCount];
     for (int i = 0; i < genArr.Length; i++)
     {
         genArr[i] = new WaveGenerator(WaveType.Square);
     }
 }