public SoundWaveGenerator(int sampleRate) : base(sampleRate, 1) { Shape = WaveShape.SQUARE; }
public void SetWaveShape(Vector[] vertices) { shape = new WaveShape(vertices, format.dwSamplesPerSec, freq); shape.init(); }