search for: oggz_set_read_page

Displaying 5 results from an estimated 5 matches for "oggz_set_read_page".

2012 May 16
2
Problems seeking with liboggz
...p. I am experimenting 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 o...
2012 May 21
1
Problems seeking with liboggz
...gg_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(pOGGZ, 28779); for(int i=0; i<3; i++) { ogg_int64_t seektime...
2012 May 21
0
Problems seeking with liboggz
...R* 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(pOGGZ, 28779); > > >...
2012 May 23
0
Problems seeking with liboggz
...R* 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(pOGGZ, 28779); > > >...
2012 May 17
0
Problems seeking with liboggz
...ts 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", &gt...