Example #1
0
 public OggStreamBuffer(Stream stream, Encoding textEncoding)
 {
     this.stream   = stream;
     text_encoding = textEncoding;
     read          = new OvReadFunc(Read);
     seek          = new OvSeekFunc(Seek);
     close         = new OvCloseFunc(Close);
     tell          = new OvTellFunc(Tell);
     callbacks     = new OvCallbacks(read, seek, close, tell);
     OvMarshal.ov_open_callbacks(new IntPtr(1), ref vorbis_file, IntPtr.Zero, 0, callbacks);
     handle_ovf = GCHandle.Alloc(vorbis_file, GCHandleType.Pinned);
 }