Represents the data chunk in a WAVE media format file.
Inheritance: RiffChunk, ISupportBinaryImage
Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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;
        }