else { // Dolby Digital WAV
// AC-3 content, but not encoded in same format as normal AC-3 file
// For one thing, byte order is swapped
$ac3_data = '';
for ($i = 0;
$i < 28;
$i += 2
) { $ac3_data .=
substr($testData, 8 +
$i + 1, 1
);
$ac3_data .=
substr($testData, 8 +
$i + 0, 1
);
} $getid3_ac3->getid3->info
['avdataoffset'
] = 0;
$getid3_ac3->getid3->info
['avdataend'
] =
strlen($ac3_data);
$getid3_ac3->
AnalyzeString($ac3_data);
} if (empty($getid3_temp->info
['error'
])) { $info['audio'
] =
$getid3_temp->info
['audio'
];
$info['ac3'
] =
$getid3_temp->info
['ac3'
];
if (!
empty($getid3_temp->info
['warning'
])) { foreach ($getid3_temp->info
['warning'
] as $newerror) { $this->
warning('getid3_ac3() says: ['.
$newerror.']'
);
} } }