getid3_lib::RGADgainString

Advertisement

Syntax Syntax

getid3_lib::RGADgainString( int $namecode, int $originatorcode, int $replaygain )

Parameters Parameters

$namecode

(int) (Required)

$originatorcode

(int) (Required)

$replaygain

(int) (Required)

Return Return

(string)

Source Source

File: wp-includes/ID3/getid3.lib.php

		} else {
			$signbit = '0';
		}
		$storedreplaygain = intval(round($replaygain * 10));
		$gainstring  = str_pad(decbin($namecode), 3, '0', STR_PAD_LEFT);
		$gainstring .= str_pad(decbin($originatorcode), 3, '0', STR_PAD_LEFT);
		$gainstring .= $signbit;
		$gainstring .= str_pad(decbin($storedreplaygain), 9, '0', STR_PAD_LEFT);

		return $gainstring;
	}

	/**
	 * @param float $amplitude

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.