Contains everything that will be needed by a SoundWave that's streaming in data
更多...
#include <AudioStreaming.h>
|
|
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.
- 参数
-
| TimeLimit | Optional 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
- 参数
-
| IndicesToLoad | List of chunk indices that should be loaded |
| IndicesToFree | List of chunk indices that should be freed |
- 返回
- Whether any changes to loaded chunks are required
◆ Initialize()
Sets up the streaming wave data and loads the first chunk of audio for instant play
- 参数
-
| SoundWave | The 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
- 参数
-
| InChunkIndices | The Chunk Indices that are currently needed by all sources using this sound |
| bShouldPrioritizeAsyncIORequest | Whether 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
该结构体的文档由以下文件生成: