مشاركة عبر


AppBroadcastStreamReader.TryGetNextAudioFrame Method

Definition

Attempts to obtain an AppBroadcastStreamAudioFrame object representing the latest audio frame from the broadcast stream.

public:
 virtual AppBroadcastStreamAudioFrame ^ TryGetNextAudioFrame() = TryGetNextAudioFrame;
AppBroadcastStreamAudioFrame TryGetNextAudioFrame();
public AppBroadcastStreamAudioFrame TryGetNextAudioFrame();
function tryGetNextAudioFrame()
Public Function TryGetNextAudioFrame () As AppBroadcastStreamAudioFrame

Returns

If successful, the latest audio frame from the broadcast stream; otherwise, null.

Windows requirements

App capabilities
appBroadcast appBroadcastSettings

Remarks

In order to avoid unnecessary copying of frame data, this method returns a reference to frame data stored in a circular buffer. After acquiring a frame, you should make a copy of frame data and release the buffer as quickly as possible.

Applies to