Package com.jcraft.jogg

Examples of com.jcraft.jogg.Page


            long target = pos - total;
            long end = offsets[link + 1];
            long begin = offsets[link];
            int best = (int) begin;

            Page og = new Page();
            while (begin < end) {
                long bisect;
                int ret;

                if (end - begin < CHUNKSIZE) {
                    bisect = begin;
                } else {
                    bisect = (end + begin) / 2;
                }

                seek_helper(bisect);
                ret = get_next_page(og, end - bisect);

                if (ret == -1) {
                    end = bisect;
                } else {
                    long granulepos = og.granulepos();
                    if (granulepos < target) {
                        best = ret; // raw offset of packet with granulepos
                        begin = offset; // raw offset of next packet
                    } else {
                        end = bisect;
View Full Code Here


   * Taken from the JOrbis Player
   */
  private void initJOrbis(){
      oy=new SyncState();
      os=new StreamState();
      og=new Page();
      op=new Packet();
   
      vi=new Info();
      vc=new Comment();
      vd=new DspState();
View Full Code Here

  }
 
  private void init_jorbis() {
    this.oy = new SyncState();
    this.os = new StreamState();
    this.og = new Page();
    this.op = new Packet();
   
    this.vi = new Info();
    this.vc = new Comment();
    this.vd = new DspState();
View Full Code Here

TOP

Related Classes of com.jcraft.jogg.Page

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.