Lines Matching refs:ParsedArray

380 	 * @param array  $ParsedArray
384 public function ParseOldRAheader($OldRAheaderData, &$ParsedArray) { argument
387 $ParsedArray = array();
388 $ParsedArray['magic'] = substr($OldRAheaderData, 0, 4);
389 if ($ParsedArray['magic'] != '.ra'."\xFD") {
392 $ParsedArray['version1'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 4, 2));
394 if ($ParsedArray['version1'] < 3) {
398 } elseif ($ParsedArray['version1'] == 3) {
400 $ParsedArray['fourcc1'] = '.ra3';
401 $ParsedArray['bits_per_sample'] = 16; // hard-coded for old versions?
402 $ParsedArray['sample_rate'] = 8000; // hard-coded for old versions?
404 $ParsedArray['header_size'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 6, 2));
405 …$ParsedArray['channels'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 8, 2)); // …
409 $ParsedArray['bytes_per_minute'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 16, 2));
410 $ParsedArray['audio_bytes'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 18, 4));
411 …$ParsedArray['comments_raw'] = substr($OldRAheaderData, 22, $ParsedA…
414 …$commentlength = getid3_lib::BigEndian2Int(substr($ParsedArray['comments_raw'], $commentoffset++, …
415 …$ParsedArray['comments']['title'][] = substr($ParsedArray['comments_raw'], $commentoffset, $co…
418 …$commentlength = getid3_lib::BigEndian2Int(substr($ParsedArray['comments_raw'], $commentoffset++, …
419 …$ParsedArray['comments']['artist'][] = substr($ParsedArray['comments_raw'], $commentoffset, $co…
422 …$commentlength = getid3_lib::BigEndian2Int(substr($ParsedArray['comments_raw'], $commentoffset++, …
423 …$ParsedArray['comments']['copyright'][] = substr($ParsedArray['comments_raw'], $commentoffset, $co…
428 …$ParsedArray['fourcc'] = substr($OldRAheaderData, 23 + $commen…
430 } elseif ($ParsedArray['version1'] <= 5) {
433 $ParsedArray['fourcc1'] = substr($OldRAheaderData, 8, 4);
434 $ParsedArray['file_size'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 12, 4));
435 $ParsedArray['version2'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 16, 2));
436 $ParsedArray['header_size'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 18, 4));
437 $ParsedArray['codec_flavor_id'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 22, 2));
438 $ParsedArray['coded_frame_size'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 24, 4));
439 $ParsedArray['audio_bytes'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 28, 4));
440 $ParsedArray['bytes_per_minute'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 32, 4));
442 $ParsedArray['sub_packet_h'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 40, 2));
443 $ParsedArray['frame_size'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 42, 2));
444 $ParsedArray['sub_packet_size'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 44, 2));
447 switch ($ParsedArray['version1']) {
450 $ParsedArray['sample_rate'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 48, 2));
452 $ParsedArray['bits_per_sample'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 52, 2));
453 $ParsedArray['channels'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 54, 2));
454 $ParsedArray['length_fourcc2'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 56, 1));
455 $ParsedArray['fourcc2'] = substr($OldRAheaderData, 57, 4);
456 $ParsedArray['length_fourcc3'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 61, 1));
457 $ParsedArray['fourcc3'] = substr($OldRAheaderData, 62, 4);
460 …$ParsedArray['comments_raw'] = substr($OldRAheaderData, 69, $ParsedA…
463 …$commentlength = getid3_lib::BigEndian2Int(substr($ParsedArray['comments_raw'], $commentoffset++, …
464 …$ParsedArray['comments']['title'][] = substr($ParsedArray['comments_raw'], $commentoffset, $co…
467 …$commentlength = getid3_lib::BigEndian2Int(substr($ParsedArray['comments_raw'], $commentoffset++, …
468 …$ParsedArray['comments']['artist'][] = substr($ParsedArray['comments_raw'], $commentoffset, $co…
471 …$commentlength = getid3_lib::BigEndian2Int(substr($ParsedArray['comments_raw'], $commentoffset++, …
472 …$ParsedArray['comments']['copyright'][] = substr($ParsedArray['comments_raw'], $commentoffset, $co…
477 $ParsedArray['sample_rate'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 48, 4));
478 $ParsedArray['sample_rate2'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 52, 4));
479 $ParsedArray['bits_per_sample'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 56, 4));
480 $ParsedArray['channels'] = getid3_lib::BigEndian2Int(substr($OldRAheaderData, 60, 2));
481 $ParsedArray['genr'] = substr($OldRAheaderData, 62, 4);
482 $ParsedArray['fourcc3'] = substr($OldRAheaderData, 66, 4);
483 $ParsedArray['comments'] = array();
486 $ParsedArray['fourcc'] = $ParsedArray['fourcc3'];
490 foreach ($ParsedArray['comments'] as $key => $value) {
492 $ParsedArray['comments'][$key][0] = '';