Lines Matching refs:info

27 		$info = &$this->getid3->info;
29 $info['fileformat'] = 'tta';
30 $info['audio']['dataformat'] = 'tta';
31 $info['audio']['lossless'] = true;
32 $info['audio']['bitrate_mode'] = 'vbr';
34 $this->fseek($info['avdataoffset']);
37 $info['tta']['magic'] = substr($ttaheader, 0, 3);
39 if ($info['tta']['magic'] != $magic) {
40 …_lib::PrintHexBytes($magic).'" at offset '.$info['avdataoffset'].', found "'.getid3_lib::PrintHexB…
41 unset($info['fileformat']);
42 unset($info['audio']);
43 unset($info['tta']);
52 $info['tta']['major_version'] = 1;
53 $info['avdataoffset'] += 16;
55 $info['tta']['compression_level'] = ord($ttaheader[3]);
56 $info['tta']['channels'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 4, 2));
57 $info['tta']['bits_per_sample'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 6, 2));
58 $info['tta']['sample_rate'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 8, 4));
59 $info['tta']['samples_per_channel'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 12, 4));
61 $info['audio']['encoder_options'] = '-e'.$info['tta']['compression_level'];
62 …$info['playtime_seconds'] = $info['tta']['samples_per_channel'] / $info['tta']['sample_r…
67 $info['tta']['major_version'] = 2;
68 $info['avdataoffset'] += 20;
70 $info['tta']['compression_level'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 4, 2));
71 $info['tta']['audio_format'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 6, 2));
72 $info['tta']['channels'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 8, 2));
73 $info['tta']['bits_per_sample'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 10, 2));
74 $info['tta']['sample_rate'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 12, 4));
75 $info['tta']['data_length'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 16, 4));
77 $info['audio']['encoder_options'] = '-e'.$info['tta']['compression_level'];
78 $info['playtime_seconds'] = $info['tta']['data_length'] / $info['tta']['sample_rate'];
83 $info['tta']['major_version'] = 3;
84 $info['avdataoffset'] += 26;
86 …$info['tta']['audio_format'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 4, 2)); //…
87 $info['tta']['channels'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 6, 2));
88 $info['tta']['bits_per_sample'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 8, 2));
89 $info['tta']['sample_rate'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 10, 4));
90 $info['tta']['data_length'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 14, 4));
91 $info['tta']['crc32_footer'] = substr($ttaheader, 18, 4);
92 $info['tta']['seek_point'] = getid3_lib::LittleEndian2Int(substr($ttaheader, 22, 4));
94 $info['playtime_seconds'] = $info['tta']['data_length'] / $info['tta']['sample_rate'];
102 $info['audio']['encoder'] = 'TTA v'.$info['tta']['major_version'];
103 $info['audio']['bits_per_sample'] = $info['tta']['bits_per_sample'];
104 $info['audio']['sample_rate'] = $info['tta']['sample_rate'];
105 $info['audio']['channels'] = $info['tta']['channels'];
106 …$info['audio']['bitrate'] = (($info['avdataend'] - $info['avdataoffset']) * 8) / $info['pl…