AudioTrack AudioTrack AudioTrack AudioTrack AudioTrack Class

Definition

Represents an audio track.

public : sealed class AudioTrack : IMediaTrack
struct winrt::Windows::Media::Core::AudioTrack : IMediaTrack
public sealed class AudioTrack : IMediaTrack
Public NotInheritable Class AudioTrack Implements IMediaTrack
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Get an instance of this class by calling MediaPlaybackAudioTrackList.GetAt.

Version history

Windows version SDK version Value added
1607 14393 GetEncodingProperties
1607 14393 Name
1607 14393 OpenFailed
1607 14393 PlaybackItem
1607 14393 SupportInfo

Properties

Id Id Id Id Id

Gets or sets the identifier for the audio track.

Label Label Label Label Label

Gets or sets the label for the audio track.

Language Language Language Language Language

Gets or sets a string indicating the language of the audio track.

Name Name Name Name Name

Gets the name of the AudioTrack.

PlaybackItem PlaybackItem PlaybackItem PlaybackItem PlaybackItem

Gets the MediaPlaybackItem containing the AudioTrack.

SupportInfo SupportInfo SupportInfo SupportInfo SupportInfo

Gets support information for the AudioTrack. This information includes the status of the audio decoder, information about any audio degradation applied by the decoder, and the status of the MediaSource with which the audio track is associated.

TrackKind TrackKind TrackKind TrackKind TrackKind

Gets a value indicating the type of data the track contains. For AudioTrack objects, this value is always MediaTrackKind.Audio.

Methods

GetEncodingProperties() GetEncodingProperties() GetEncodingProperties() GetEncodingProperties() GetEncodingProperties()

Gets the audio encoding properties for an AudioTrack.

Events

OpenFailed OpenFailed OpenFailed OpenFailed OpenFailed

Occurs when an AudioTrack fails to open.

See also