Пример #1
0
 private void InitBlock(WaveFile enclosingInstance)
 {
     EnclosingInstance = enclosingInstance;
 }
Пример #2
0
 public WaveFormatChunkData(WaveFile enclosingInstance)
 {
     InitBlock(enclosingInstance);
     FormatTag = 1; // PCM
     Config(44100, 16, 1);
 }
Пример #3
0
 public WaveFileSample(WaveFile enclosingInstance)
 {
     InitBlock(enclosingInstance);
     Chan = new short[MAX_WAVE_CHANNELS];
 }
Пример #4
0
 /// <summary>
 ///     Open for write using another wave file's parameters...
 /// </summary>
 public virtual int OpenForWrite(string filename, WaveFile otherWave)
 {
     return(OpenForWrite
                (filename, null, otherWave.SamplingRate(), otherWave.BitsPerSample(), otherWave.NumChannels()));
 }