Lines Matching refs:offset

30 		$offset = 0;
34 switch (substr($rawdata, $offset, 4)) {
42 $info['la']['version_major'] = (int) substr($rawdata, $offset + 2, 1);
43 $info['la']['version_minor'] = (int) substr($rawdata, $offset + 3, 1);
45 $offset += 4;
47 $info['la']['uncompressed_size'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
48 $offset += 4;
54 $WAVEchunk = substr($rawdata, $offset, 4);
56 …$this->error('Expected "WAVE" ('.getid3_lib::PrintHexBytes('WAVE').') at offset '.$offset.', found…
59 $offset += 4;
64 $info['la']['fmt_size'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
66 $offset += 4;
75 $fmt_chunk = substr($rawdata, $offset, 4);
77 …$this->error('Expected "fmt " ('.getid3_lib::PrintHexBytes('fmt ').') at offset '.$offset.', found…
80 $offset += 4;
81 $fmt_size = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
82 $offset += 4;
84 $info['la']['raw']['format'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 2));
85 $offset += 2;
87 $info['la']['channels'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 2));
88 $offset += 2;
94 $info['la']['sample_rate'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
95 $offset += 4;
101 … $info['la']['bytes_per_second'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
102 $offset += 4;
103 … $info['la']['bytes_per_sample'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 2));
104 $offset += 2;
105 … $info['la']['bits_per_sample'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 2));
106 $offset += 2;
108 … $info['la']['samples'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
109 $offset += 4;
111 … $info['la']['raw']['flags'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 1));
112 $offset += 1;
118 … $info['la']['original_crc'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
119 $offset += 4;
140 $info['la']['seekpoints'][] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
141 $offset += 4;
150 $info['la']['footerstart'] = getid3_lib::LittleEndian2Int(substr($rawdata, $offset, 4));
151 $offset += 4;
200 $info['avdataoffset'] = $info['avdataoffset'] + $offset;
215 if (substr($rawdata, $offset, 2) == 'LA') {
216 …n().'] does not support LA version '.substr($rawdata, $offset + 2, 1).'.'.substr($rawdata, $offset