Beispiel #1
0
 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
     };
 }
Beispiel #2
0
 private static extern RawkError CreateVgsDecoder(ref RawkCallbacks cb, out int channels, out int rate, out long samples, out IntPtr stream);
Beispiel #3
0
 private static extern RawkError CreateEncoder(ref RawkCallbacks cb, int channels, int rate, int targetrate, int bitrate, out IntPtr stream);