public void Initialize(int bytepersample, int len, int max, int width) { BytePerSample = bytepersample; DisplayLength = len; DisplayAmpMax = max; DisplayWidthMax = width; waveFrame = new WaveFrame(bytepersample, DisplayLength, DisplayAmpMax, DisplayWidthMax); }