@Override
    public OggPage getOggPage(int index) throws IOException {
        if (eos){
            return null;
        }

//        if (!eos){
//            int num = pageCache.size();
//            long fiveMillis = 5000000;
//            long timeStart  = System.nanoTime();
//            do {
//                readNextOggPage();
//            } while ( !eos && (System.nanoTime() - timeStart) < fiveMillis );
//            System.out.println( pageCache.size() - num );

            if (pageCache.size() == 0 /*&& !eos*/){
                readNextOggPage();
            }
//        }

        return pageCache.removeFirst();
    }
Single-threaded physical ogg stream. Decodes audio in the same thread
that reads.
jme3-jogg/src/main/java/com/jme3/audio/plugins/UncachedOggStream.java