search for: get_granulepo

Displaying 1 result from an estimated 1 matches for "get_granulepo".

Did you mean: get_granulepos
2004 Sep 22
3
copying an ogg stream
...;t work - the granulepos and page structures don't match with the original file. here's what i am doing. (python-like pseudo-code). First i create copies of all packets in a page, store them in 'list'; i also save the granule-position of this page: foreach page in oggfile: g=get_granulepos(page) list=[] foreach packet in page: list.append(dup_packet(packet)) # creates a deep copy of packet then i write all pages but the last one to the output file (because, as i understand it, only the last packet has the correct granulepos; all other packets have a granulepos of -1)....