/// <summary> /// A constructor with this signature must be implemented by descendants. /// <see cref="System.Runtime.Serialization.ISerializable"/> for more information /// </summary> /// <param name="info">The <see cref="System.Runtime.Serialization.SerializationInfo"/> where is the serialized data.</param> /// <param name="context">The source (see <see cref="System.Runtime.Serialization.StreamingContext"/>) for this serialization.</param> protected AudioWriterConfig(SerializationInfo info, StreamingContext context) { int rate = info.GetInt32("Format.Rate"); int bits = info.GetInt32("Format.Bits"); int channels = info.GetInt32("Format.Channels"); m_Format = new WaveFormat(rate, bits, channels); }
public Config() { // // Required for Windows Form Designer support // InitializeComponent(); var format = new WaveFormat(44100, 16, 2); this.editMp3Writer1.Config = new Mp3WriterConfig(format, new BE_CONFIG(format, 128)); }
public AudioWriter(Stream Output, WaveFormat InputDataFormat) : base(Output, System.Text.Encoding.ASCII) { m_InputDataFormat = InputDataFormat; }
public AudioWriterConfig(WaveFormat f) { m_Format = new WaveFormat(f.nSamplesPerSec, f.wBitsPerSample, f.nChannels); }
public static extern int waveOutOpen(out IntPtr hWaveOut, int uDeviceID, WaveFormat lpFormat, WaveDelegate dwCallback, int dwInstance, int dwFlags);