public Callbacks(Stream stream, bool owner) { this.owner = owner; this.stream = stream; Struct = new RawkCallbacks() { CloseFunc = Close, ReadFunc = Read, SeekFunc = Seek, TellFunc = Tell, WriteFunc = Write, Descriptor = IntPtr.Zero }; }
private static extern RawkError CreateVgsDecoder(ref RawkCallbacks cb, out int channels, out int rate, out long samples, out IntPtr stream);
private static extern RawkError CreateEncoder(ref RawkCallbacks cb, int channels, int rate, int targetrate, int bitrate, out IntPtr stream);