Exemple #1
0
 private void InitBlock(WaveFile enclosingInstance)
 {
     EnclosingInstance = enclosingInstance;
 }
Exemple #2
0
 public WaveFormatChunkData(WaveFile enclosingInstance)
 {
     InitBlock(enclosingInstance);
     FormatTag = 1; // PCM
     Config(44100, 16, 1);
 }
Exemple #3
0
 public WaveFileSample(WaveFile enclosingInstance)
 {
     InitBlock(enclosingInstance);
     Chan = new short[MAX_WAVE_CHANNELS];
 }
Exemple #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()));
 }