MpegAudioPackage

MP3RootPackage.MpegAudioPackage property

Gets the MPEG audio metadata package.

public MpegAudioPackage MpegAudioPackage { get; }

Property Value

The MPEG audio metadata package.

Examples

This example demonstrates how to read MPEG audio metadata from an MP3 file.

using (Metadata metadata = new Metadata(Constants.MP3WithID3V2))
{
    var root = metadata.GetRootPackage<MP3RootPackage>();

    Console.WriteLine(root.MpegAudioPackage.Bitrate);
    Console.WriteLine(root.MpegAudioPackage.ChannelMode);
    Console.WriteLine(root.MpegAudioPackage.Emphasis);
    Console.WriteLine(root.MpegAudioPackage.Frequency);
    Console.WriteLine(root.MpegAudioPackage.HeaderPosition);
    Console.WriteLine(root.MpegAudioPackage.Layer);

    // ...
}

See Also