public MixProvider() { for (int i = 0; i < genArr.Length; i++) { genArr[i] = new WaveGenerator(WaveType.Square); } }
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); } }