/// <summary> /// Creates a deeply cloned copy of the <see cref="WaveDataChunk"/>. /// </summary> /// <returns>A deeply cloned copy of the <see cref="WaveDataChunk"/>.</returns> public new WaveDataChunk Clone() { WaveDataChunk waveDataChunk = new WaveDataChunk(m_waveFormat); // Deep clone sample blocks foreach (LittleBinaryValue[] samples in m_sampleBlocks) { waveDataChunk.SampleBlocks.Add(WaveFile.CloneSampleBlock(samples)); } return(waveDataChunk); }