예제 #1
0
        internal void InitDSP()
        {
            vorbisDSPState = new vorbis.DspState(vorbisInfo);
            //vorbisDSPState.synthesis_init( vorbisInfo );

            vorbisBlock = new vorbis.Block(vorbisDSPState);
            //vorbisBlock.init( vorbisDSPState );
        }
예제 #2
0
        public virtual void Dispose()
        {
            if (oggPacket != null)
            {
                oggPacket.Dispose();
                oggPacket = null;
            }

            if (vorbisDSPState != null)
            {
                vorbisDSPState.Dispose();
                vorbisDSPState = null;
            }

            if (vorbisBlock != null)
            {
                vorbisBlock.Dispose();
                vorbisBlock = null;
            }

            if (vorbisInfo != null)
            {
                vorbisInfo.Dispose();
                vorbisInfo = null;
            }

            if (vorbisComment != null)
            {
                vorbisComment.Dispose();
                vorbisComment = null;
            }

            if (vorbisStreamState != null)
            {
                vorbisStreamState.Dispose();
                vorbisStreamState = null;
            }
        }