JamesHeinrich / getID3

http://www.getid3.org/
Other
1.15k stars 246 forks source link

Replay gain not working ? #357

Open TheoD02 opened 2 years ago

TheoD02 commented 2 years ago

Hello just testing lib, working fine for all tag used but im locked with replay_gain_adjustment

I get an exception "track_adjustment" not defined in array, but is it defined. When dumping before the conditional

if (($source_data_array['track_adjustment'] > 51) || ($source_data_array['track_adjustment'] < -51)) {

$source_data_array contains this values :

array:4 [
  "encodingid" => 3
  "data" => 6.0
  "description" => ""
  "language" => "eng"
]

"data" key correspond to the value of track_adjustment, if i change value in track_adjustment "data" key will have the same value. but not "track_adjustment" key.

Is the same case for alum_adjustment, raw and all other keys

JamesHeinrich commented 2 years ago

Can you provide a sample file that reproduces this issue? You can post a link here or email to info@getid3.org

TheoD02 commented 2 years ago

Hey,

Not really related to a file, issue is on multiple file when writing.

TheoD02 commented 2 years ago

Hello,

Did you have any example to use 'replay_gain_adjustment' ? I maybe make mistake somewhere. After retest, I can tell you if is on my part making a mistake or really from getID3 writing

Thanks