search for: tell_func

Displaying 8 results from an estimated 8 matches for "tell_func".

2004 Apr 17
1
Reading OGG embedded in a pack file
...trying to do void readFromPackfile( FILE * pStream ) { OggVorbis_File vf; ov_callbacks callbacks; vorbis_info *info; callbacks.read_func = sdl_read_func; callbacks.seek_func = sdl_seek_func; // Will setting this to NULL let me read from the middle of a stream? callbacks.tell_func = sdl_tell_func; callbacks.close_func = sdl_close_func; if ( ov_open_callbacks( pStream, &vf, NULL, 0, callbacks)==0 ) { // Valid OGG data, so do some code here to read it in... // Get our OGG info info = ov_info( &vf, -1 ); } } After looking at th...
2004 Sep 06
1
Fixing libvorbisfile to handle largefiles
...n patch things in a more logical way, and ask about possible problems that may be introduced. First of all, libvorbisfile. ov_callbacks contains four functions. The seek_func already uses a 64-bit type for the offset, so no change needs to be made there. However, when accessing large files, the tell_function will need to return a 64-bit type as well. This is going to change the API, isn't it? Anyway, here's the needed patch to accomplish this, based on source updated the weekend of 22.Aug: --- include/vorbis/vorbisfile.h-ORIG Sun Aug 22 20:49:53 2004 +++ include/vorbis/vorbisfile.h Fri A...
2001 Sep 06
1
NULLs in ov_callbacks
When calling ov_open_callbacks(), is it safe to have seek_func, tell_func, and close_func all equal to NULL? If not, which ones must I provide and how can I return an error e.g., data source is not seekable? -- Ignacio Vazquez-Abrams <ignacio@openservices.net> --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.or...
2009 Jun 04
0
ogg audio streaming problem
...f the ogg file to the size of ogg file. After certain chunk of data is downloaded, ogg length in samples is initialized by callbacks.read_func = &oggReadCallback; callbacks.seek_func = &oggSeekCallback; callbacks.close_func = &oggCloseCallback; callbacks.tell_func = &oggTellCallback; const int err = ov_open_callbacks (input, &ovFile, 0, 0, callbacks); lengthInSamples = (uint32) ov_pcm_total (&ovFile, -1); input is the file stream. The first chunk data is played excellent, however, after that , it gives me static noise. I debugged t...
2009 Jun 04
1
ogg audio streaming problem
...f the ogg file to the size of ogg file. After certain chunk of data is downloaded, ogg length in samples is initialized by callbacks.read_func = &oggReadCallback; callbacks.seek_func = &oggSeekCallback; callbacks.close_func = &oggCloseCallback; callbacks.tell_func = &oggTellCallback; const int err = ov_open_callbacks (input, &ovFile, 0, 0, callbacks); lengthInSamples = (uint32) ov_pcm_total (&ovFile, -1); input is the file stream. The first chunk data is played excellent, however, after that , it gives me static noise. I debugged t...
2004 May 23
4
Various Ogg Vorbis largefile notes and/or patches
Greetings one and all; I'm not subscribed to this list so I'm first sending this message to verify that mails from me make it through, and then later I'll send the juicy messages with patches. Also, the address I'm using is IPv6-only and doesn't often work, so drop me from any replies and I'll catch the archives, or drop only the hostname part to get an IPv4 address that
2000 Apr 21
3
vorbisfile updates, and a couple of questions
...ok at the ov_callbacks struct in vorbisfile.h, then create appropriate functions, and continue... The functions you write should follow their stdio counterparts in terms of return values as closely as possible. Most importantly, seek_func() MUST return -1 if the stream is unseekable. In this case, tell_func() isn't going to be used, but be consistent and implement it - it might get used in the future. If you can't give a result, return -1 from this too. When I get around to it, I'll convert the winamp plugin over to use normal windows functions instead of stdio, mostly as an example of h...
2006 Aug 30
2
Continued:How can I seek in Ogg Vorbis file, but not using Vorbisfile library?
Hello, All. First, I want to thank Ian Malone and Ralph Giles, thanks for your kind replies. But I still have problems about seek. As you suggested, I could use ov_open_callbacks() to supply my own read/write/seek functions. So, can you give me an example? I?m sorry for my ignorance, because I haven?t used callbacks before. I analyzed the vorbisfile.c in Tremor, and I think I