Mp3InfoReplayGain


@UnstableApi
class Mp3InfoReplayGain : Metadata.Entry


Representation of the ReplayGain data stored in a LAME Xing or Info frame.

Summary

Nested types

A gain field can store one gain adjustment with name and originator metadata.

The name of a gain field.

The originator of a gain field.

Public functions

Boolean
equals(o: Any?)
Int
java-static Mp3InfoReplayGain?
parse(peak: Float, field1: Int, field2: Int)

Parses an instance from the packed representation.

String!

Public properties

Mp3InfoReplayGain.GainField?

The first of two gain fields in the LAME MP3 Info header, or null if the field is invalid or unset.

Mp3InfoReplayGain.GainField?

The second of two gain fields in the LAME MP3 Info header, or null if the field is invalid or unset.

Float

32 bit floating point "Peak signal amplitude".

Inherited functions

From androidx.media3.common.Metadata.Entry
ByteArray<Byte>?

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.

Format?

Returns the Format that can be used to decode the wrapped metadata in getWrappedMetadataBytes, or null if this Entry doesn't contain wrapped metadata.

Unit

Updates the MediaMetadata.Builder with the type-specific values stored in this Entry.

Public functions

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

parse

java-static fun parse(peak: Float, field1: Int, field2: Int): Mp3InfoReplayGain?

Parses an instance from the packed representation.

Returns null if the representation is invalid or should be ignored.

toString

fun toString(): String!

Public properties

field1

val field1Mp3InfoReplayGain.GainField?

The first of two gain fields in the LAME MP3 Info header, or null if the field is invalid or unset.

field2

val field2Mp3InfoReplayGain.GainField?

The second of two gain fields in the LAME MP3 Info header, or null if the field is invalid or unset.

peak

val peakFloat

32 bit floating point "Peak signal amplitude".

1.0 is maximal signal amplitude store-able in decoding format. 0.8 is 80% of maximal signal amplitude store-able in decoding format. 1.5 is 150% of maximal signal amplitude store-able in decoding format.

A value above 1.0 can occur for example due to "true peak" measurement. A value of 0.0 means the peak signal amplitude is unknown.