public override void Close() { if (!_Initialized) { return; } _Initialized = false; if (!_FileOpened) { return; } if (_audiodecoder != IntPtr.Zero) { CAcinerella.ac_free_decoder(_audiodecoder); } if (_instance != IntPtr.Zero) { CAcinerella.ac_close(_instance); } if (_instance != IntPtr.Zero) { CAcinerella.ac_free(_instance); } _FileOpened = false; }
private void DoFree() { if (_videodecoder != IntPtr.Zero) { CAcinerella.ac_free_decoder(_videodecoder); } if (_instance != IntPtr.Zero) { CAcinerella.ac_close(_instance); } if (_instance != IntPtr.Zero) { CAcinerella.ac_free(_instance); } _Closeproc(_StreamID); }