Пример #1
0
        internal NativeOggSync()
        {
            Contract.Ensures(_state != IntPtr.Zero);

            _state = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(OggSyncState)));
            if (SafeNativeMethods.OggSyncInitialize(_state) != 0)
            {
                throw new IOException(Resources.NativeOggSyncInitializationError);
            }
        }