Package org.vorbis.jcraft.jogg

Examples of org.vorbis.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


            System.err.println("Error reading first page of Ogg bitstream data.");
            // goto err
            return;
        }

        Packet header_main = new Packet();

        if (state.os.packetout(header_main) != 1) {
            System.err.println("Error reading initial header packet.");
            // goto err
            return;
        }

        if (state.vi.synthesis_headerin(state.vc, header_main) < 0) {
            System.err.println("This Ogg bitstream does not contain Vorbis data.");
            // goto err
            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;
        Packet header_comments = new Packet();
        Packet header_codebooks = new Packet();

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

        System.out.println(state.vi);
    }

    int write(OutputStream out) {
        StreamState streamout = new StreamState();
        Packet header_main = new Packet();
        Packet header_comments = new Packet();
        Packet header_codebooks = new Packet();

        Page ogout = new Page();

        Packet op = new Packet();
        long granpos = 0;

        int result;

        int index;
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

     */
    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

    // 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

    void init_jorbis() {
        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() {
        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

TOP

Related Classes of org.vorbis.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.