public override void ToBytes(IList <byte> buffer) { base.ToBytes(buffer); WaveFormatExExtensions.AddLe(buffer, this.wID); WaveFormatExExtensions.AddLe(buffer, this.fdwFlags); WaveFormatExExtensions.AddLe(buffer, this.nBlockSize); WaveFormatExExtensions.AddLe(buffer, this.nFramesPerBlock); WaveFormatExExtensions.AddLe(buffer, this.nCodecDelay); }
public virtual void ToBytes(IList <byte> buffer) { WaveFormatExExtensions.AddLe(buffer, this.wFormatTag); WaveFormatExExtensions.AddLe(buffer, this.nChannels); WaveFormatExExtensions.AddLe(buffer, this.nSamplesPerSec); WaveFormatExExtensions.AddLe(buffer, this.nAvgBytesPerSec); WaveFormatExExtensions.AddLe(buffer, this.nBlockAlign); WaveFormatExExtensions.AddLe(buffer, this.wBitsPerSample); WaveFormatExExtensions.AddLe(buffer, this.cbSize); }
public override void ToBytes(IList <byte> buffer) { base.ToBytes(buffer); WaveFormatExExtensions.AddLe(buffer, this.wPayloadType); WaveFormatExExtensions.AddLe(buffer, this.wAudioProfileLevelIndication); WaveFormatExExtensions.AddLe(buffer, this.wStructType); WaveFormatExExtensions.AddLe(buffer, this.wReserved1); WaveFormatExExtensions.AddLe(buffer, this.dwReserved2); if (this.pbAudioSpecificConfig == null || this.pbAudioSpecificConfig.Count <= 0) { return; } foreach (byte num in (IEnumerable <byte>) this.pbAudioSpecificConfig) { buffer.Add(num); } }
public static void AddLe(this IList <byte> buffer, uint value) { WaveFormatExExtensions.AddLe(buffer, (ushort)value); WaveFormatExExtensions.AddLe(buffer, (ushort)(value >> 16)); }