AudioStreamDescriptor AudioStreamDescriptor AudioStreamDescriptor AudioStreamDescriptor AudioStreamDescriptor Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Represents a description an audio media stream.

public : sealed class AudioStreamDescriptor : IAudioStreamDescriptor, IAudioStreamDescriptor2, IMediaStreamDescriptor
struct winrt::Windows::Media::Core::AudioStreamDescriptor : IAudioStreamDescriptor, IAudioStreamDescriptor2, IMediaStreamDescriptor
public sealed class AudioStreamDescriptor : IAudioStreamDescriptor, IAudioStreamDescriptor2, IMediaStreamDescriptor
Public NotInheritable Class AudioStreamDescriptor Implements IAudioStreamDescriptor, IAudioStreamDescriptor2, IMediaStreamDescriptor
var audioStreamDescriptor = new audioStreamDescriptor(encodingProperties);
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

When creating a MediaEncodingProfile, call SetAudioTracks, passing in one or more AudioStreamDescriptor objects to provide information about the audio tracks to be encoded.

See the MediaStreamSource Sample for an example of using Media Stream Source in a UWP app.

Constructors

AudioStreamDescriptor(AudioEncodingProperties) AudioStreamDescriptor(AudioEncodingProperties) AudioStreamDescriptor(AudioEncodingProperties) AudioStreamDescriptor(AudioEncodingProperties) AudioStreamDescriptor(AudioEncodingProperties)

Creates an instance of AudioStreamDescriptor class using the specified AudioEncodingProperties.

Properties

EncodingProperties EncodingProperties EncodingProperties EncodingProperties EncodingProperties

Gets an object describing the encoding properties for the audio stream. These properties include the sample rate and channel count of the audio.

IsSelected IsSelected IsSelected IsSelected IsSelected

Gets a value indicating whether the stream is currently in use by a MediaStreamSource.

Label Label Label Label Label

Gets or sets an app-defined label that identifies an audio stream in a MediaEncodingProfile that contains multiple streams.

Language Language Language Language Language

Gets or sets the RFC-1766 language code for the stream.

LeadingEncoderPadding LeadingEncoderPadding LeadingEncoderPadding LeadingEncoderPadding LeadingEncoderPadding

Gets or sets the number of samples inserted at the beginning of the audio stream by the encoder as padding. Use this property to explicitly set the padding size the system will use to implement gapless playback for the audio stream.

Name Name Name Name Name

Gets or sets the name of the stream.

TrailingEncoderPadding TrailingEncoderPadding TrailingEncoderPadding TrailingEncoderPadding TrailingEncoderPadding

Gets or sets the number of samples inserted at the end of the audio stream by the encoder as padding. Use this property to explicitly set the padding size the system will use to implement gapless playback for the audio stream.

Methods

Copy() Copy() Copy() Copy() Copy()

Prerelease. Creates a copy of the AudioStreamDescriptor.

See Also