AudioMediaFrame AudioMediaFrame AudioMediaFrame AudioMediaFrame AudioMediaFrame Class

Definition

Represents a frame of audio data retreived from a MediaFrameSource.

public : sealed class AudioMediaFrame
struct winrt::Windows::Media::Capture::Frames::AudioMediaFrame
public sealed class AudioMediaFrame
Public NotInheritable Class AudioMediaFrame
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

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 AudioEncodingProperties AudioEncodingProperties AudioEncodingProperties 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 FrameReference FrameReference FrameReference 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() GetAudioFrame() GetAudioFrame() GetAudioFrame() GetAudioFrame()

Creates a copy of the AudioMediaFrame as an AudioFrame object.

See also

  • Windows.Media.Capture.Frames.MediaFrameReference M:Windows.Media.Capture.Frames.MediaFrameReader.TryAcquireLatestFrame T:Windows.Media.AudioFrame