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