harbor run -t scale-ai/hil-bench-swe_21-baselineharbor download scale-ai/hil-bench-swe_21-baseline##Scanner gain handling does not fully align across supported tag formats##
Description
The metadata scanner currently reads gain-related tags but does not consistently interpret all formats used in modern audio files. Different tagging schemes may represent loudness adjustment values differently, and the scanner should recognize these formats while keeping a consistent loudness reference with existing outputs.
Steps to reproduce 1. Add an audio file (for example, OPUS) that includes gain-related tags in a format different from the traditional ReplayGain fields. 2. Run a library scan. 3. Check the track/album gain reported by the application or by the metadata layer.
Actual Behavior
Expected Behavior
r128_track_gain and r128_album_gain.No new interfaces are introduced.
Existing behavior is surfaced through the metadata tag accessors in scanner/metadata/metadata.go, including:
Tags.RGTrackGain() and Tags.RGAlbumGain() for gain valuesTags.RGTrackPeak() and Tags.RGAlbumPeak() for peak values