$module_dataformat =
($track_info['dataformat'
] == 'mp2' ? 'mp3' :
($track_info['dataformat'
] == 'eac3' ? 'ac3' :
$track_info['dataformat'
]));
getid3_lib::
IncludeDependency(GETID3_INCLUDEPATH.'module.audio.'.
$module_dataformat.'.php', __FILE__, true
);
if (!
isset($info['matroska'
]['track_data_offsets'
][$trackarray['TrackNumber'
]])) { $this->
warning('Unable to parse audio data ['.
basename(__FILE__
).':'.__LINE__.'] because $info[matroska][track_data_offsets]['.
$trackarray['TrackNumber'
].'] not set'
);
break;
} // create temp instance
$getid3_temp =
new getID3();
if ($track_info['dataformat'
] != 'flac'
) { $getid3_temp->
openfile($this->getid3->filename,
$this->getid3->info
['filesize'
],
$this->getid3->fp
);
} $getid3_temp->info
['avdataoffset'
] =
$info['matroska'
]['track_data_offsets'
][$trackarray['TrackNumber'
]]['offset'
];
if ($track_info['dataformat'
][0
] == 'm' ||
$track_info['dataformat'
] == 'flac'
) { $getid3_temp->info
['avdataend'
] =
$info['matroska'
]['track_data_offsets'
][$trackarray['TrackNumber'
]]['offset'
] +
$info['matroska'
]['track_data_offsets'
][$trackarray['TrackNumber'
]]['length'
];
} // analyze
$class = 'getid3_'.
$module_dataformat;
$header_data_key =
$track_info['dataformat'
][0
] == 'm' ? 'mpeg' :
$track_info['dataformat'
];
$getid3_audio =
new $class($getid3_temp, __CLASS__
);
if ($track_info['dataformat'
] == 'flac'
) {