Пример #1
0
        private void ReleaseUnmanagedResources()
        {
            if (processingState != null && oggStream != null && outStream != null)
            {
                processingState.WriteEndOfStream();

                while (!oggStream.Finished && processingState.PacketOut(out var packet))
                {
                    oggStream.PacketIn(packet);

                    FlushPages(oggStream, outStream, false);
                }
                FlushPages(oggStream, outStream, true);
            }
            oggStream       = null;
            processingState = null;
        }