Displaying 6 results from an estimated 6 matches for "oggz_set_read_callback".
2012 May 16
2
Problems seeking with liboggz
...with liboggz to get acquainted with its API.
As test files I am using some Ogg-Speex files converted from WAV files
with speexenc.exe.
I wrote a little testing app in Visual Studio 2010 under Windows 7.
I defined OggzReadPage and OggzReadPacket callbacks with
oggz_set_read_page() and oggz_set_read_callback().
For the moment I am mainly having troubles with seeking. Maybe I am not
using correctly liboggz API.
What happens:
- I open a Ogg Speex-encoded audio file with oggz_open("MyFile.spx",
OGGZ_READ | OGGZ_AUTO);
- I have a loop of invocations of oggz_read() that triggers i...
2009 Feb 13
1
Decoding from memory using libfishsound
...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 stuck...
2012 May 21
1
Problems seeking with liboggz
..., long serialno, void* user_data);
int myReadPageCallback (OGGZ* oggz, const ogg_page* og, long serialno, void* user_data);
int _tmain(int argc, _TCHAR* argv[])
{
OGGZ* pOGGZ;
int ret;
oggz_off_t ofs;
pOGGZ = oggz_open("MyAudio.spx", OGGZ_READ | OGGZ_AUTO);
ret = oggz_set_read_callback (pOGGZ, -1, myReadPacketCallback, (void*)0);
ret = oggz_set_read_page (pOGGZ, -1, myReadPageCallback, (void*)0);
ofs = oggz_seek(pOGGZ, 0, SEEK_END);
printf("\n Audio file size in bytes = %8lld", ofs);
ofs = oggz_seek(pOGGZ, 0, SEEK_SET);
ret = oggz_read(pOGG...
2012 May 21
0
Problems seeking with liboggz
...page* og, long serialno,
> void* user_data);
>
>
>
> int _tmain(int argc, _TCHAR* argv[])
>
> {
>
> OGGZ* pOGGZ;
>
> int ret;
>
> oggz_off_t ofs;
>
>
>
> pOGGZ = oggz_open("MyAudio.spx", OGGZ_READ | OGGZ_AUTO);
>
> ret = oggz_set_read_callback (pOGGZ, -1, myReadPacketCallback,
> (void*)0);
>
> ret = oggz_set_read_page (pOGGZ, -1, myReadPageCallback,
> (void*)0);
>
>
>
> ofs = oggz_seek(pOGGZ, 0, SEEK_END);
>
> printf("\n Audio file size in bytes = %8lld", ofs);
>
> ofs = o...
2012 May 23
0
Problems seeking with liboggz
...page* og, long serialno,
> void* user_data);
>
>
>
> int _tmain(int argc, _TCHAR* argv[])
>
> {
>
> OGGZ* pOGGZ;
>
> int ret;
>
> oggz_off_t ofs;
>
>
>
> pOGGZ = oggz_open("MyAudio.spx", OGGZ_READ | OGGZ_AUTO);
>
> ret = oggz_set_read_callback (pOGGZ, -1, myReadPacketCallback,
> (void*)0);
>
> ret = oggz_set_read_page (pOGGZ, -1, myReadPageCallback,
> (void*)0);
>
>
>
> ofs = oggz_seek(pOGGZ, 0, SEEK_END);
>
> printf("\n Audio file size in bytes = %8lld", ofs);
>
> ofs = o...
2012 May 17
0
Problems seeking with liboggz
...As test files I am using some Ogg-Speex files converted from WAV files
> with speexenc.exe.****
>
> ****
>
> I wrote a little testing app in Visual Studio 2010 under Windows 7. ****
>
> I defined OggzReadPage and OggzReadPacket callbacks with
> oggz_set_read_page() and oggz_set_read_callback().****
>
> ****
>
> For the moment I am mainly having troubles with seeking. Maybe I am not
> using correctly liboggz API.****
>
> What happens:****
>
> - I open a Ogg Speex-encoded audio file with oggz_open("MyFile.spx",
> OGGZ_READ | OGGZ_AUTO); ***...