MpegAudioPackage

MP3RootPackage.MpegAudioPackage property

Mendapatkan paket metadata audio MPEG.

public MpegAudioPackage MpegAudioPackage { get; }

Nilai properti

Paket metadata audio MPEG.

Contoh

Contoh ini menunjukkan cara membaca metadata audio MPEG dari file MP3.

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);

    // ...
}

Lihat juga