Skip to content

Musepack: Check for ReplayGain version == 1 too restrictive (taglib/mpc/mpcproperties.cpp) #926

Open

Description

@Moonbase59

Line 280 ff. in taglib/mpc/mpcproperties.cpp: Why check for RG v1?

      if(replayGainVersion == 1) {
        d->trackGain = data.toShort(1, true);
        d->trackPeak = data.toShort(3, true);
        d->albumGain = data.toShort(5, true);
        d->albumPeak = data.toShort(7, true);
      }

This should be the same for later versions, i.e. "2". At least until they break the "RG" header format. Seems too restrictive.

Just had a quick glance at the Musepack code. Looks it’s just an informational field, set to a hardcoded "1" in the Musepack code (because they actually use the RG1 algorithm).

Loudgain will most probably want to set this to "2", because I only support the EBU R128 based ReplayGain 2. So I think the RG version should either not be tested for, or against "1" and "2" (since there are currently no other versions of ReplayGain).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions