FMediaSampleCache::GetAudioSample

Get the audio sample for the specified play time.

Windows
MacOS
Linux

References

Module

MediaUtils

Header

/Engine/Source/Runtime/MediaUtils/Public/MediaSampleCache.h

Include

#include "MediaSampleCache.h"

Source

/Engine/Source/Runtime/MediaUtils/Private/MediaSampleCache.cpp

Syntax

TSharedPtr< IMediaAudioSample, ESPMode::ThreadSafe > GetAudioSample
(
    FTimespan Time
)

Remarks

Get the audio sample for the specified play time.

This method returns the sample that contains the specified time code.

Returns

The sample, or nullptr if no sample available.

Parameters

Parameter

Description

Time

The time to get the sample for (in the player's clock).

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss