Package com.jcraft.jogg

Examples of com.jcraft.jogg.Packet


     */
    private void init_jorbis() {
        oggSyncState_ = new SyncState();
        oggStreamState_ = new StreamState();
        oggPage_ = new Page();
        oggPacket_ = new Packet();
        vorbisInfo = new Info();
        vorbisComment = new Comment();
        vorbisDspState = new DspState();
        vorbisBlock = new Block(vorbisDspState);
        buffer = null;
View Full Code Here


     */
    private void init_jorbis() {
        oggSyncState_ = new SyncState();
        oggStreamState_ = new StreamState();
        oggPage_ = new Page();
        oggPacket_ = new Packet();
        vorbisInfo = new Info();
        vorbisComment = new Comment();
        vorbisDspState = new DspState();
        vorbisBlock = new Block(vorbisDspState);
        buffer = null;
View Full Code Here

        if ( state.os.pagein(og) < 0 ) {
            log.error( "Error reading first page of Ogg bitstream data." );
            return;
        }

        final Packet header_main = new Packet();

        if ( state.os.packetout(header_main) != 1) {
            log.error( "Error reading initial header packet." );
            return;
        }

        if ( state.vi.synthesis_headerin(state.vc, header_main) < 0 ) {
            log.error( "This Ogg bitstream does not contain Vorbis data." );
            return;
        }

        state.mainlen = header_main.bytes;
        state.mainbuf = new byte[ state.mainlen ];
        System.arraycopy(
            header_main.packet_base,
            header_main.packet,
            state.mainbuf,
            0,
            state.mainlen
        );

        int i = 0;
        Packet header;
        final Packet header_comments = new Packet();
        final Packet header_codebooks = new Packet();

        header = header_comments;
        while ( i < 2 ) {
            while( i < 2 ) {
                int result = state.oy.pageout( og );
View Full Code Here

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

        }

        SyncState oy = new SyncState(); // sync and verify incoming physical bitstream
        StreamState os = new StreamState(); // take physical pages, weld into a logical stream of packets
        Page og = new Page(); // one Ogg bitstream page.  Vorbis packets are inside
        Packet op = new Packet(); // one raw packet of data for decode

        Info vi = new Info(); // struct that stores all the static vorbis bitstream settings
        Comment vc = new Comment(); // struct that stores all the bitstream user comments
        DspState vd = new DspState(); // central working state for the packet->PCM decoder
        Block vb = new Block(vd); // local working space for packet->PCM decode
View Full Code Here

    // uses the local ogg_stream storage in vf; this is important for
    // non-streaming input sources
    int fetch_headers(Info vi, Comment vc, int[] serialno, Page og_ptr) {
        Page og = new Page();
        Packet op = new Packet();
        int ret;

        if (og_ptr == null) {
            ret = get_next_page(og, CHUNKSIZE);
            if (ret == OV_EREAD)
View Full Code Here

        // extract packets from page
        while (true) {
            // process a packet if we can.  If the machine isn't loaded,
            // neither is a page
            if (decode_ready) {
                Packet op = new Packet();
                int result = os.packetout(op);
                long granulepos;
                // if(result==-1)return(-1); // hole in the data. For now, swallow
                // and go. We'll need to add a real
                // error code in a bit.
View Full Code Here

   */
  private void initJOrbis(){
      oy=new SyncState();
      os=new StreamState();
      og=new Page();
      op=new Packet();
   
      vi=new Info();
      vc=new Comment();
      vd=new DspState();
      vb=new Block(vd);
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();
    this.vb = new Block(this.vd);
View Full Code Here

TOP

Related Classes of com.jcraft.jogg.Packet

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.