Navigation
API > API/Runtime > API/Runtime/MediaAssets > API/Runtime/MediaAssets/UMediaPlayer
Description
Get the sample rate of the specified audio track.
| Name | GetAudioTrackSampleRate |
| Type | function |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h |
| Include Path | #include "MediaPlayer.h" |
| Source | /Engine/Source/Runtime/MediaAssets/Private/Assets/MediaPlayer.cpp |
UFUNCTION (BlueprintCallable, Category="Media|MediaPlayer")
int32 GetAudioTrackSampleRate
(
int32 TrackIndex,
int32 FormatIndex
) const
Samples per second.
Parameters
| Name | Remarks |
|---|---|
| TrackIndex | Index of the audio track, or INDEX_NONE for the selected one. |
| FormatIndex | Index of the track format, or INDEX_NONE for the selected one. |
See Also
-
GetAudioTrackType