AudioMediaFrame Class

Definition

Represents a frame of audio data retreived from a MediaFrameSource.

public ref class AudioMediaFrame sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AudioMediaFrame final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AudioMediaFrame
Public NotInheritable Class AudioMediaFrame
Inheritance
Object Platform::Object IInspectable AudioMediaFrame
Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

Get an instance of this class by accessing the AudioMediaFrame property of a MediaFrameReference object that was obtained from a media frame source with a call to MediaFrameReader.TryAcquireLatestFrame. Call GetAudioFrame to get a copy of the frame as an AudioFrame object, which provides access to the underlying audio data.

Properties

AudioEncodingProperties

Gets an AudioEncodingProperties object that provides information about the audio data in the frame. This includes information like the bitrate, sample rate, and channel count of the audio data.

FrameReference

Gets the MediaFrameReference wrapper object associated with the AudioMediaFrame, which provides access to format information and other properties of the media frame.

Methods

GetAudioFrame()

Creates a copy of the AudioMediaFrame as an AudioFrame object.

Applies to

See also