[Speex-dev] Decoding from memory using libfishsound
lukasz.minkiewicz at gmail.com
Fri Feb 13 00:57:37 PST 2009
I have a problem. I've started to develop crossplatform sound
receiving application using qt4/openal/libfishsound. Server is
streaming audio coded with speex in ogg container throuh http. I'm
receiving packages 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 char*.
Please help me, because I'm stucked at least
a month and can't find a solution.
More information about the Speex-dev