WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

getid3_flac::parseCUESHEET() private WP 1.0

Это метод класса: getid3_flac{}

Хуков нет.

Возвращает

true/false.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->parseCUESHEET( $BlockData );
$BlockData(строка) (обязательный)

Код getid3_flac::parseCUESHEET() WP 5.5.1

wp-includes/ID3/module.audio.flac.php
<?php
private function parseCUESHEET($BlockData) {
	$info = &$this->getid3->info;
	$offset = 0;
	$info['flac']['CUESHEET']['media_catalog_number'] =                              trim(substr($BlockData, $offset, 128), "\0");
	$offset += 128;
	$info['flac']['CUESHEET']['lead_in_samples']      =         getid3_lib::BigEndian2Int(substr($BlockData, $offset, 8));
	$offset += 8;
	$info['flac']['CUESHEET']['flags']['is_cd']       = (bool) (getid3_lib::BigEndian2Int(substr($BlockData, $offset, 1)) & 0x80);
	$offset += 1;

	$offset += 258; // reserved

	$info['flac']['CUESHEET']['number_tracks']        =         getid3_lib::BigEndian2Int(substr($BlockData, $offset, 1));
	$offset += 1;

	for ($track = 0; $track < $info['flac']['CUESHEET']['number_tracks']; $track++) {
		$TrackSampleOffset = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 8));
		$offset += 8;
		$TrackNumber       = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 1));
		$offset += 1;

		$info['flac']['CUESHEET']['tracks'][$TrackNumber]['sample_offset']         = $TrackSampleOffset;

		$info['flac']['CUESHEET']['tracks'][$TrackNumber]['isrc']                  =                           substr($BlockData, $offset, 12);
		$offset += 12;

		$TrackFlagsRaw                                                             = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 1));
		$offset += 1;
		$info['flac']['CUESHEET']['tracks'][$TrackNumber]['flags']['is_audio']     = (bool) ($TrackFlagsRaw & 0x80);
		$info['flac']['CUESHEET']['tracks'][$TrackNumber]['flags']['pre_emphasis'] = (bool) ($TrackFlagsRaw & 0x40);

		$offset += 13; // reserved

		$info['flac']['CUESHEET']['tracks'][$TrackNumber]['index_points']          = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 1));
		$offset += 1;

		for ($index = 0; $index < $info['flac']['CUESHEET']['tracks'][$TrackNumber]['index_points']; $index++) {
			$IndexSampleOffset = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 8));
			$offset += 8;
			$IndexNumber       = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 1));
			$offset += 1;

			$offset += 3; // reserved

			$info['flac']['CUESHEET']['tracks'][$TrackNumber]['indexes'][$IndexNumber] = $IndexSampleOffset;
		}
	}

	return true;
}