WordPress at a glance
function is not described

getid3_lib::RGADgainString() public WP 1.0

{} It's a method of the class: getid3_lib{}

No Hooks.

Return

String.

Usage

$result = getid3_lib::RGADgainString( $namecode, $originatorcode, $replaygain );
$namecode(int) (required)
-
$originatorcode(int) (required)
-
$replaygain(int) (required)
-

Code of getid3_lib::RGADgainString() WP 5.7.2

<?php
public static function RGADgainString($namecode, $originatorcode, $replaygain) {
	if ($replaygain < 0) {
		$signbit = '1';
	} 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;
}