ConvertLatencyToByteSize() public method

Gets the size of a wave buffer equivalent to the latency in milliseconds.
public ConvertLatencyToByteSize ( int milliseconds ) : int
milliseconds int The milliseconds.
return int
Ejemplo n.º 1
0
        public WaveData(double seconds)
        {
            var length = Format.ConvertLatencyToByteSize((int)(seconds * 1000));

            Samples   = new short[length / BytesPerSample];
            ByteArray = new byte[length];
        }