Represents the data chunk in a WAVE media format file.
Inheritance: RiffChunk, ISupportBinaryImage
示例#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);
        }
示例#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;
        }