FMediaPlayerFacade::GetAudioTrackSampleRate

Get the sample rate of the specified audio track.

Choose your operating system:

Windows

macOS

Linux

References

Module

MediaUtils

Header

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

Include

#include "MediaPlayerFacade.h"

Source

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

Syntax

uint32 GetAudioTrackSampleRate
(
    int32 TrackIndex,
    int32 FormatIndex
) const

Remarks

Get the sample rate of the specified audio track.

Returns

Samples per second.

Parameters

Parameter

Description

TrackIndex

Index of the audio track.

FormatIndex

Index of the track format.

See Also