Displaying 1 result from an estimated 1 matches for "oggz_open_stdio".
2009 Feb 13
1
Decoding from memory using libfishsound
...ckages and when I write them to file application example
from libfishsound is properly decoding it. Problem starts, when I want
to decode from memory, for example: receive few packages, decode them
and send to sound card.
This is code for decoding, which cast callback function read_packet.
oggz = oggz_open_stdio(newfile,OGGZ_READ);
oggz_set_read_callback (oggz, -1, read_packet, fsound);
while ((n = oggz_read (oggz, 1024)) > 0);
I've tried to create object using oggz_new, a write from memory data
using oggz_read, but it doesn't worked.
Data from package is stored in QByteArray which can return c...