engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FStreamingWaveData结构体 参考final

Contains everything that will be needed by a SoundWave that's streaming in data 更多...

#include <AudioStreaming.h>

Public 成员函数

void BeginPendingRequests (const TArray< uint32 > &IndicesToLoad, const TArray< uint32 > &IndicesToFree)
 Kicks off any pending requests
 
bool BlockTillAllRequestsFinished (float TimeLimit=0.0f)
 Blocks till all pending requests are fulfilled. 更多...
 
bool HasPendingRequests (TArray< uint32 > &IndicesToLoad, TArray< uint32 > &IndicesToFree) const
 Checks whether the requested chunk indices differ from those loaded 更多...
 
bool Initialize (USoundWave *SoundWave, FLegacyAudioStreamingManager *InStreamingManager)
 Sets up the streaming wave data and loads the first chunk of audio for instant play 更多...
 
void UpdateChunkRequests (FWaveRequest &InWaveRequest)
 Tells the SoundWave which chunks are currently required so that it can start loading any needed 更多...
 
bool UpdateStreamingStatus ()
 Updates the streaming status of the sound wave and performs finalization when appropriate. 更多...
 

Public 属性

FLegacyAudioStreamingManager * AudioStreamingManager
 Ptr to owning audio streaming manager.
 
FWaveRequest CurrentRequest
 Indices of chunks we want to have loaded
 
TArray< uint32 > LoadedChunkIndices
 Indices of chunks that are currently loaded
 
FThreadSafeCounter PendingChunkChangeRequestStatus
 Thread-safe counter indicating the audio streaming state.
 
USoundWave * SoundWave
 SoundWave this streaming data is for
 

详细描述

Contains everything that will be needed by a SoundWave that's streaming in data

成员函数说明

◆ BlockTillAllRequestsFinished()

bool FStreamingWaveData::BlockTillAllRequestsFinished ( float  TimeLimit = 0.0f)

Blocks till all pending requests are fulfilled.

参数
TimeLimitOptional time limit for processing, in seconds. Specifying 0 means infinite time limit.
返回
Return true if there are no requests left in flight, false if the time limit was reached before they were finished.

◆ HasPendingRequests()

bool FStreamingWaveData::HasPendingRequests ( TArray< uint32 > &  IndicesToLoad,
TArray< uint32 > &  IndicesToFree 
) const

Checks whether the requested chunk indices differ from those loaded

参数
IndicesToLoadList of chunk indices that should be loaded
IndicesToFreeList of chunk indices that should be freed
返回
Whether any changes to loaded chunks are required

◆ Initialize()

bool FStreamingWaveData::Initialize ( USoundWave *  SoundWave,
FLegacyAudioStreamingManager *  InStreamingManager 
)

Sets up the streaming wave data and loads the first chunk of audio for instant play

参数
SoundWaveThe SoundWave we are managing

◆ UpdateChunkRequests()

void FStreamingWaveData::UpdateChunkRequests ( FWaveRequest &  InWaveRequest)

Tells the SoundWave which chunks are currently required so that it can start loading any needed

参数
InChunkIndicesThe Chunk Indices that are currently needed by all sources using this sound
bShouldPrioritizeAsyncIORequestWhether request should have higher priority than usual

◆ UpdateStreamingStatus()

bool FStreamingWaveData::UpdateStreamingStatus ( )

Updates the streaming status of the sound wave and performs finalization when appropriate.

The function returns true while there are pending requests in flight and updating needs to continue.

返回
true if there are requests in flight, false otherwise

该结构体的文档由以下文件生成: