WordPress at a glance
function is not described

getID3::CalculateReplayGain() public WP 1.0

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

No Hooks.

Return

true|false.

Usage

$getID3 = new getID3();
$getID3->CalculateReplayGain();

Code of getID3::CalculateReplayGain() WP 5.7.2

<?php
public function CalculateReplayGain() {
	if (isset($this->info['replay_gain'])) {
		if (!isset($this->info['replay_gain']['reference_volume'])) {
			$this->info['replay_gain']['reference_volume'] = 89.0;
		}
		if (isset($this->info['replay_gain']['track']['adjustment'])) {
			$this->info['replay_gain']['track']['volume'] = $this->info['replay_gain']['reference_volume'] - $this->info['replay_gain']['track']['adjustment'];
		}
		if (isset($this->info['replay_gain']['album']['adjustment'])) {
			$this->info['replay_gain']['album']['volume'] = $this->info['replay_gain']['reference_volume'] - $this->info['replay_gain']['album']['adjustment'];
		}

		if (isset($this->info['replay_gain']['track']['peak'])) {
			$this->info['replay_gain']['track']['max_noclip_gain'] = 0 - getid3_lib::RGADamplitude2dB($this->info['replay_gain']['track']['peak']);
		}
		if (isset($this->info['replay_gain']['album']['peak'])) {
			$this->info['replay_gain']['album']['max_noclip_gain'] = 0 - getid3_lib::RGADamplitude2dB($this->info['replay_gain']['album']['peak']);
		}
	}
	return true;
}