+ /// Adds seeking information to the index.
+ pub fn add_entry(&mut self, id: u32, entry: SeekEntry) {
+ let mut idx = self.stream_id_to_index(id);
+ if idx.is_none() {
+ idx = Some(self.add_stream(id));
+ }
+ self.seek_info[idx.unwrap()].add_entry(entry);
+ self.seek_info[idx.unwrap()].filled = true;
+ }
+ /// Searches for a seek position before requested time.
+ pub fn find_pos(&self, time: NATimePoint) -> Option<SeekIndexResult> {