예제 #1
0
 /// <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);
 }
예제 #2
0
파일: Config.cs 프로젝트: pclancy/yeti
 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));
 }
예제 #3
0
파일: AudioWriter.cs 프로젝트: pclancy/yeti
 public AudioWriter(Stream Output, WaveFormat InputDataFormat)
     : base(Output, System.Text.Encoding.ASCII)
 {
     m_InputDataFormat = InputDataFormat;
 }
예제 #4
0
 public AudioWriterConfig(WaveFormat f)
 {
     m_Format = new WaveFormat(f.nSamplesPerSec, f.wBitsPerSample, f.nChannels);
 }
예제 #5
0
파일: WaveNative.cs 프로젝트: pclancy/yeti
 public static extern int waveOutOpen(out IntPtr hWaveOut, int uDeviceID, WaveFormat lpFormat, WaveDelegate dwCallback, int dwInstance, int dwFlags);
예제 #6
0
 public AudioWriter(Stream Output, WaveFormat InputDataFormat)
     : base(Output, System.Text.Encoding.ASCII)
 {
     m_InputDataFormat = InputDataFormat;
 }
예제 #7
0
파일: WaveNative.cs 프로젝트: 4dvn/yeti
 public static extern int waveOutOpen(out IntPtr hWaveOut, int uDeviceID, WaveFormat lpFormat, WaveDelegate dwCallback, int dwInstance, int dwFlags);