Lines Matching refs:info

27 		$info = &$this->getid3->info;
69 $info['fileformat'] = 'avr';
71 $this->fseek($info['avdataoffset']);
74 $info['avr']['raw']['magic'] = substr($AVRheader, 0, 4);
76 if ($info['avr']['raw']['magic'] != $magic) {
77 …_lib::PrintHexBytes($magic).'" at offset '.$info['avdataoffset'].', found "'.getid3_lib::PrintHexB…
78 unset($info['fileformat']);
79 unset($info['avr']);
82 $info['avdataoffset'] += 128;
84 $info['avr']['sample_name'] = rtrim(substr($AVRheader, 4, 8));
85 $info['avr']['raw']['mono'] = getid3_lib::BigEndian2Int(substr($AVRheader, 12, 2));
86 $info['avr']['bits_per_sample'] = getid3_lib::BigEndian2Int(substr($AVRheader, 14, 2));
87 $info['avr']['raw']['signed'] = getid3_lib::BigEndian2Int(substr($AVRheader, 16, 2));
88 $info['avr']['raw']['loop'] = getid3_lib::BigEndian2Int(substr($AVRheader, 18, 2));
89 $info['avr']['raw']['midi'] = getid3_lib::BigEndian2Int(substr($AVRheader, 20, 2));
90 $info['avr']['raw']['replay_freq'] = getid3_lib::BigEndian2Int(substr($AVRheader, 22, 1));
91 $info['avr']['sample_rate'] = getid3_lib::BigEndian2Int(substr($AVRheader, 23, 3));
92 $info['avr']['sample_length'] = getid3_lib::BigEndian2Int(substr($AVRheader, 26, 4));
93 $info['avr']['loop_start'] = getid3_lib::BigEndian2Int(substr($AVRheader, 30, 4));
94 $info['avr']['loop_end'] = getid3_lib::BigEndian2Int(substr($AVRheader, 34, 4));
95 $info['avr']['midi_split'] = getid3_lib::BigEndian2Int(substr($AVRheader, 38, 2));
96 $info['avr']['sample_compression'] = getid3_lib::BigEndian2Int(substr($AVRheader, 40, 2));
97 $info['avr']['reserved'] = getid3_lib::BigEndian2Int(substr($AVRheader, 42, 2));
98 $info['avr']['sample_name_extra'] = rtrim(substr($AVRheader, 44, 20));
99 $info['avr']['comment'] = rtrim(substr($AVRheader, 64, 64));
101 $info['avr']['flags']['stereo'] = (($info['avr']['raw']['mono'] == 0) ? false : true);
102 $info['avr']['flags']['signed'] = (($info['avr']['raw']['signed'] == 0) ? false : true);
103 $info['avr']['flags']['loop'] = (($info['avr']['raw']['loop'] == 0) ? false : true);
105 $info['avr']['midi_notes'] = array();
106 if (($info['avr']['raw']['midi'] & 0xFF00) != 0xFF00) {
107 $info['avr']['midi_notes'][] = ($info['avr']['raw']['midi'] & 0xFF00) >> 8;
109 if (($info['avr']['raw']['midi'] & 0x00FF) != 0x00FF) {
110 $info['avr']['midi_notes'][] = ($info['avr']['raw']['midi'] & 0x00FF);
113 …if (($info['avdataend'] - $info['avdataoffset']) != ($info['avr']['sample_length'] * (($info['avr'…
114 …ng '.($info['avr']['sample_length'] * (($info['avr']['bits_per_sample'] == 8) ? 1 : 2)).' bytes of…
117 $info['audio']['dataformat'] = 'avr';
118 $info['audio']['lossless'] = true;
119 $info['audio']['bitrate_mode'] = 'cbr';
120 $info['audio']['bits_per_sample'] = $info['avr']['bits_per_sample'];
121 $info['audio']['sample_rate'] = $info['avr']['sample_rate'];
122 $info['audio']['channels'] = ($info['avr']['flags']['stereo'] ? 2 : 1);
123 …$info['playtime_seconds'] = ($info['avr']['sample_length'] / $info['audio']['channels']) /…
124 …$info['audio']['bitrate'] = ($info['avr']['sample_length'] * (($info['avr']['bits_per_samp…