search for: spxfile

Displaying 2 results from an estimated 2 matches for "spxfile".

2009 May 13
2
Speex seek with high precision
...ed result. I've also used ogg_page_granulepos for seeking but it seems more difficult to use. I use something like this: do { while (ogg_sync_pageout(&oy, &og) != 1) { data = ogg_sync_buffer(&oy, 512); readbytes = fread(data, 1, 512, spxfile); ogg_sync_wrote(&oy, readbytes); } //printf("ogg_page_granulepos: %lld\n", ogg_page_granulepos(&og)); } while (ogg_page_granulepos(&og) < time * freq); // time in seconds, freq: 16000 But this way I can't get enough precision neithe...
2009 May 13
0
Speex seek with high precision
..._granulepos for seeking but it seems more difficult > to use. I use something like this: > > ??? do > ??? { > ??? ??? while (ogg_sync_pageout(&oy, &og) != 1) > ??? ??? { > ??? ??? ??? data = ogg_sync_buffer(&oy, 512); > ??? ??? ??? readbytes = fread(data, 1, 512, spxfile); > ??? ??? ??? ogg_sync_wrote(&oy, readbytes); > ??? ??? } > ??? ??? //printf("ogg_page_granulepos: %lld\n", ogg_page_granulepos(&og)); > ??? } > ??? while (ogg_page_granulepos(&og) < time * freq); // time in seconds, > freq: 16000 > > But this way...