38 $info = &$this->getid3->info;
40 fseek($this->getid3->fp,
$info[
'avdataoffset'], SEEK_SET);
41 $AAheader =
fread($this->getid3->fp, 8);
43 $magic =
"\x57\x90\x75\x36";
44 if (substr($AAheader, 4, 4) != $magic) {
45 $info[
'error'][] =
'Expecting "'.Helper::PrintHexBytes($magic).
'" at offset '.
$info[
'avdataoffset'].
', found "'.
Helper::PrintHexBytes(substr($AAheader, 4, 4)).
'"';
52 $thisfile_au = &
$info[
'aa'];
54 $info[
'fileformat'] =
'aa';
55 $info[
'audio'][
'dataformat'] =
'aa';
56 $info[
'error'][] =
'Audible Audiobook (.aa) parsing not enabled in this version of GetId3Core() ['.$this->getid3->version().
']';
58 $info[
'audio'][
'bitrate_mode'] =
'cbr';
59 $thisfile_au[
'encoding'] =
'ISO-8859-1';
62 if ($thisfile_au[
'filesize'] > (
$info[
'avdataend'] -
$info[
'avdataoffset'])) {
63 $info[
'warning'][] =
'Possible truncated file - expecting "'.$thisfile_au[
'filesize'].
'" bytes of data, only found '.(
$info[
'avdataend'] -
$info[
'avdataoffset']).
' bytes"';
66 $info[
'audio'][
'bits_per_sample'] = 16;
67 $info[
'audio'][
'sample_rate'] = $thisfile_au[
'sample_rate'];
68 $info[
'audio'][
'channels'] = $thisfile_au[
'channels'];
static PrintHexBytes($string, $hex=true, $spaces=true, $htmlencoding='UTF-8')
GetId3() by James Heinrich info@getid3.org //.
fseek($bytes, $whence=SEEK_SET)
GetId3() by James Heinrich info@getid3.org //.
Create styles array
The data for the language used.
static BigEndian2Int($byteword, $synchsafe=false, $signed=false)