Displaying 7 results from an estimated 7 matches for "ogg_sync_reset".
2000 Jun 27
1
vorbis-tools/Makefile.in glitch...
...and when I try to do "make -C
vorbis-tools ogg123", due to rpm's build environment, I get lots of:
gcc ogg123.o -o ogg123 -lm ../lib/libvorbis.a ../lib/vorbisfile.a
../lib/vorbisfile.a(vorbisfile.o): In function `_get_prev_page':
vorbisfile.o(.text+0x54): undefined reference to `ogg_sync_reset'
vorbisfile.o(.text+0xa9): undefined reference to `ogg_sync_pageseek'
vorbisfile.o(.text+0xd2): undefined reference to `ogg_sync_buffer'
...
This is obviously because libvorbis comes before vorbisfile on the command
line ;). It really seems like we should be doing "-L../lib -lvor...
2004 Nov 01
1
compile libvorbis using mingw?
...g library file: .libs/libvorbisfile.dll.a
.libs/vorbisfile.o(.text+0xcd):vorbisfile.c: undefined reference to
`ogg_page_serialno'
.libs/vorbisfile.o(.text+0x16b):vorbisfile.c: undefined reference to
`ogg_page_serialno'
.libs/vorbisfile.o(.text+0x23e):vorbisfile.c: undefined reference to
`ogg_sync_reset'
.libs/vorbisfile.o(.text+0x29b):vorbisfile.c: undefined reference to
`ogg_sync_reset'
.libs/vorbisfile.o(.text+0x314):vorbisfile.c: undefined reference to
`ogg_stream_clear'
.libs/vorbisfile.o(.text+0x39e):vorbisfile.c: undefined reference to
`ogg_sync_clear'
.libs/vorbisfile.o(...
2005 Jun 22
2
ogg_sync_pageout
...call to ogg_stream_pagein?
On a side note, I need to do seeking on top of libvorbis, I'd love to use
vorbisfile but sadly I can't. Is there a reasonable way to "rewind" without
calling various resets and returning to the beginning of the file? It looks
like I'd have to call:
Ogg_sync_reset
Vorbis_synthesis_restart
Would you also need to call ogg_sync_destroy, and pretty much start over? Or
is there a way you can feed it new data without destroying the buffer?
Thanks a ton,
Christopher
2007 Apr 12
0
Seek problem 1 - can't find frame number
...y
calling theora_granule_frame(theora_state *,ogg_int64_t). But what do I have
to do while doing the jumps to find this?
This is what the code currently does just after seeking to a new place in the
file:
// Clear the current ogg buffers, find a new page, and fill the buffers again
int result;
ogg_sync_reset(&sync);
while ((result = ogg_sync_pageseek(&sync, &page)) <= 0)
if (result == 0)
bufferData();
// Find the next theora page
while ((result = ogg_sync_pageout(&sync, &page)) == 0)
bufferData();
while (ogg_page_serialno(&page) != tstream.serialno)
if (ogg_sync_page...
2004 Sep 06
1
Fixing libvorbisfile to handle largefiles
...2004
+++ lib/vorbisfile.c Fri Aug 27 08:21:33 2004
@@ -84,6 +84,18 @@
}
}
+/* XXX HACK */
+/* save a tiny smidge of verbosity to make the code more readable */
+ogg_int64_t _tell_helper(OggVorbis_File *vf){
+ if(vf->datasource){
+ (vf->callbacks.tell_func)(vf->datasource);
+ ogg_sync_reset(&vf->oy);
+ }else{
+ /* shouldn't happen unless someone writes a broken callback */
+ return;
+ }
+}
+
/* The read/seek functions track absolute position within the stream */
/* from the head of the stream, get the next page. boundary specifies
Let me comment here: This i...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...ytes(oggpack_buffer *b);
extern long oggpack_bits(oggpack_buffer *b);
extern int oggpack_eop(oggpack_buffer *b);
/* Ogg BITSTREAM PRIMITIVES: decoding **************************/
extern ogg_sync_state *ogg_sync_create(void);
extern int ogg_sync_destroy(ogg_sync_state *oy);
extern int ogg_sync_reset(ogg_sync_state *oy);
extern unsigned char *ogg_sync_bufferin(ogg_sync_state *oy, long size);
extern int ogg_sync_wrote(ogg_sync_state *oy, long bytes);
extern long ogg_sync_pageseek(ogg_sync_state *oy,ogg_page *og);
extern int ogg_sync_pageout(ogg_sync_state *oy, ogg_page *og);
exter...
2007 Oct 17
1
Fwd: Re: FLAC for "ARM little endian for glibc"
....c: In function `OggFLAC__ogg_decoder_aspect_flush':
ogg_decoder_aspect.c:87: warning: implicit declaration of function `ogg_stream_reset'
ogg_decoder_aspect.c:87: error: `aspect' undeclared (first use in this function)
ogg_decoder_aspect.c:88: warning: implicit declaration of function `ogg_sync_reset'
ogg_decoder_aspect.c: At top level:
ogg_decoder_aspect.c:93: error: parse error before '*' token
ogg_decoder_aspect.c: In function `OggFLAC__ogg_decoder_aspect_reset':
ogg_decoder_aspect.c:95: error: `aspect' undeclared (first use in this function)
ogg_decoder_aspect.c: At top...