Lines Matching refs:packet
63 var packet = list.first;
66 if (this.buflen < packet.length) {
67 this.buf = Vorbis._realloc(this.buf, packet.length);
68 this.buflen = packet.length;
71 Vorbis.HEAPU8.set(packet.data, this.buf);
73 if ((status = Vorbis._VorbisDecode(this.vorbis, this.buf, packet.length, this.callback)) !== 0)
112 readHeaders: function(packet) { argument
113 if (this.buflen < packet.length) {
114 this.buf = Vorbis._realloc(this.buf, packet.length);
115 this.buflen = packet.length;
118 Vorbis.HEAPU8.set(packet, this.buf);
119 if (Vorbis._VorbisHeaderDecode(this.vorbis, this.buf, packet.length) !== 0)
122 this.headerBuffers.push(packet);
154 readPacket: function(packet) { argument
155 this.emit('data', new AV.Buffer(packet));