예제 #1
0
 public WaveFile(uint sampleRate, BitDepth bitDepth, ushort channels, Stream file)
 {
     _format = new FormatChunk(sampleRate, channels, (ushort)bitDepth, file, 12);
     _data   = new DataChunk(file, 12 + _format.Size, _format);
     _header = new HeaderChunk(file, _format, _data, 0);
     _file   = file;
 }
예제 #2
0
 public WaveFile()
 {
     _format = new FormatChunk();
     _data   = new DataChunk(_format);
     _header = new HeaderChunk(_format, _data);
 }