MediaEncodingProfile.SetAudioTracks Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the list of AudioStreamDescriptor objects describing the audio streams included in the MediaEncodingProfile.
public:
virtual void SetAudioTracks(IIterable<AudioStreamDescriptor ^> ^ value) = SetAudioTracks;
void SetAudioTracks(IIterable<AudioStreamDescriptor> const& value);
public void SetAudioTracks(IEnumerable<AudioStreamDescriptor> value);
function setAudioTracks(value)
Public Sub SetAudioTracks (value As IEnumerable(Of AudioStreamDescriptor))
Parameters
A list of VideoStreamDescriptor objects.
Windows requirements
Device family |
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v5.0)
|
Remarks
The Label field for each AudioStreamDescriptor in the collection must be unique. If you attempt to add more than one stream descriptor with the same label, an invalid argument error will occur.
If you set the Audio property, the list of video tracks is reset to a list with a single AudioStreamDescriptor entry. If you retrieve the Audio property after calling SetVideoTracks, the property will return the first entry in the provided list.