search for: npackets

Displaying 3 results from an estimated 3 matches for "npackets".

Did you mean: packets
2009 May 16
1
Speex seek with high precision
Hello, This is the code, it's a little crap but only to see if it works. I assume rate = 16000 and frame_size = 320. if (this->seek_to != -1) // SKIP { ogg_int64_t max_units; //max_units = speex_seek(fin, this->seek_to, 0, rate); int nPages = 0; int nPackets = 0; // Pone el cursor en la posici?n inicial del fichero fseek(fin, 0, SEEK_SET); ogg_int64_t position = (this->seek_to * rate) / 1000; ogg_int64_t granulepos; do { // Skip pages until the page we want to seek granulepos = ogg_page_granulepos(&og); /...
2009 May 16
2
Speex seek with high precision
...to seek the way you told but I'm facing a problem. ogg_page_packets returns 164 and following code returns 189. Shouldn't it be the same, what does that means ? int res; while (true) { res = ogg_stream_packetout(&os, &op); if (res == 1) nPackets++; if (res == -1) printf("out of sync\n"); if (res == 0) // we need another page break; } Thanky you, Arnau -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.o...
2008 Nov 03
2
Multiple plots on multiple devices
Hi List, This is possibly a newbie error. I have however searched long and hard and haven't found a solution. I am attempting to plot multiple lattice graphs in R, plotting 4 per page and moving on to a new device to plot the next 4 and so on. (I want to do this in R and not export to a pdf etc) I notice that in S-PLUS multiple tabs are opened in one device, R does not seem to have this