Lines Matching refs:offset
47 $offset = 0;
48 $MIDIheaderID = substr($MIDIdata, $offset, 4); // 'MThd'
54 $offset += 4;
55 $thisfile_midi_raw['headersize'] = getid3_lib::BigEndian2Int(substr($MIDIdata, $offset, 4));
56 $offset += 4;
57 $thisfile_midi_raw['fileformat'] = getid3_lib::BigEndian2Int(substr($MIDIdata, $offset, 2));
58 $offset += 2;
59 $thisfile_midi_raw['tracks'] = getid3_lib::BigEndian2Int(substr($MIDIdata, $offset, 2));
60 $offset += 2;
61 $thisfile_midi_raw['ticksperqnote'] = getid3_lib::BigEndian2Int(substr($MIDIdata, $offset, 2));
62 $offset += 2;
65 while ((strlen($MIDIdata) - $offset) < 8) {
70 …led to read more file data at '.$this->ftell().' (trying to seek to : '.$offset.'), was expecting …
74 $trackID = substr($MIDIdata, $offset, 4);
75 $offset += 4;
77 $tracksize = getid3_lib::BigEndian2Int(substr($MIDIdata, $offset, 4));
78 $offset += 4;
80 $trackdataarray[$i] = substr($MIDIdata, $offset, $tracksize);
81 $offset += $tracksize;
83 …$this->error('Expecting "'.getid3_lib::PrintHexBytes(GETID3_MIDI_MAGIC_MTRK).'" at '.($offset - 4)…