Skip to content

Commit 8cb2923

Browse files
Merge pull request #469 from TobiasBg/patch-1
Change type casting from double to float
2 parents 9f83bdd + 0f1bccd commit 8cb2923

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

getid3/module.audio.ogg.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -793,29 +793,29 @@ public function ParseVorbisComments() {
793793
switch ($index) {
794794
case 'rg_audiophile':
795795
case 'replaygain_album_gain':
796-
$info['replay_gain']['album']['adjustment'] = (double) $commentvalue[0];
796+
$info['replay_gain']['album']['adjustment'] = (float) $commentvalue[0];
797797
unset($info['ogg']['comments'][$index]);
798798
break;
799799

800800
case 'rg_radio':
801801
case 'replaygain_track_gain':
802-
$info['replay_gain']['track']['adjustment'] = (double) $commentvalue[0];
802+
$info['replay_gain']['track']['adjustment'] = (float) $commentvalue[0];
803803
unset($info['ogg']['comments'][$index]);
804804
break;
805805

806806
case 'replaygain_album_peak':
807-
$info['replay_gain']['album']['peak'] = (double) $commentvalue[0];
807+
$info['replay_gain']['album']['peak'] = (float) $commentvalue[0];
808808
unset($info['ogg']['comments'][$index]);
809809
break;
810810

811811
case 'rg_peak':
812812
case 'replaygain_track_peak':
813-
$info['replay_gain']['track']['peak'] = (double) $commentvalue[0];
813+
$info['replay_gain']['track']['peak'] = (float) $commentvalue[0];
814814
unset($info['ogg']['comments'][$index]);
815815
break;
816816

817817
case 'replaygain_reference_loudness':
818-
$info['replay_gain']['reference_volume'] = (double) $commentvalue[0];
818+
$info['replay_gain']['reference_volume'] = (float) $commentvalue[0];
819819
unset($info['ogg']['comments'][$index]);
820820
break;
821821

0 commit comments

Comments
 (0)