/// <summary> /// Gets a waveform of the specified channel /// </summary> /// <param name="channelOffset"></param> /// <param name="size"></param> /// <returns></returns> public float[] GetWaveform(int channelOffset = -1, int size = 256) { var buffer = new float[size]; sampleProvider.Read(buffer, 0, size); return(buffer); }