public void skipToGranulePosition(int sid, long granulePosition) throws IOException {
        OggPacket p = null;
        while( (p = getNextPacket()) != null ) {
            if(p.getSid() == sid && p.getGranulePosition() >= granulePosition) {
                nextPacket = p;
                break;
            }
        }
    }