getid3_ac3::channelsEnabledLookup

Advertisement

Syntax Syntax

getid3_ac3::channelsEnabledLookup( int $acmod, bool $lfeon )

Parameters Parameters

$acmod

(Required)

$lfeon

(Required)

Return Return

(array)

Source Source

File: wp-includes/ID3/module.audio.ac3.php

	 *
	 * @return array
	 */
	public static function channelsEnabledLookup($acmod, $lfeon) {
		$lookup = array(
			'ch1'=>($acmod == 0),
			'ch2'=>($acmod == 0),
			'left'=>($acmod > 1),
			'right'=>($acmod > 1),
			'center'=>(bool) ($acmod & 0x01),
			'surround_mono'=>false,
			'surround_left'=>false,
			'surround_right'=>false,
			'lfe'=>$lfeon);
		switch ($acmod) {
			case 4:
			case 5:
				$lookup['surround_mono']  = true;
				break;
			case 6:
			case 7:
				$lookup['surround_left']  = true;
				$lookup['surround_right'] = true;
				break;

Advertisement

Advertisement

Leave a Reply