$this->
fseek($info['avdataoffset'
]);
$StreamMarker =
$this->
fread(4
);
if ($StreamMarker != self::syncword
) { return $this->
error('Expecting "'.getid3_lib::
PrintHexBytes(self::syncword
).'" at offset '.
$info['avdataoffset'
].', found "'.getid3_lib::
PrintHexBytes($StreamMarker).'"'
);
} $info['fileformat'
] = 'flac';
$info['audio'
]['dataformat'
] = 'flac';
$info['audio'
]['bitrate_mode'
] = 'vbr';
$info['audio'
]['lossless'
] = true;
// parse flac container
return $this->
parseMETAdata();
} /**
* @return bool
*/
public function parseMETAdata() { $info = &
$this->getid3->info;
do { $BlockOffset =
$this->
ftell();
$BlockHeader =
$this->
fread(4
);
$LBFBT = getid3_lib::
BigEndian2Int(substr($BlockHeader, 0, 1
)); // LBFBT = LastBlockFlag + BlockType