![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <StreamedAudioChunkSeekTable.h>
Classes | |
| struct | ISeekTableImpl |
Public Member Functions | |
| ENGINE_API int32 | CalcSize () const |
| ENGINE_API | FStreamedAudioChunkSeekTable (EChunkSeekTableMode InMode=EChunkSeekTableMode::ConstantSamplesPerEntry) |
| void | Add (uint32 InTimeInAudioFrames, uint32 InOffset) |
| uint32 | FindOffset (uint32 InTimeInAudioFrames) const |
| uint32 | FindTime (uint32 InOffset) const |
| int32 | Num () const |
| ENGINE_API bool | Serialize (FArchive &Ar) |
| void | Reset () |
| bool | GetAt (const uint32 InIndex, uint32 &OutOffset, uint32 &OutTime) const |
Static Public Member Functions | |
| static ENGINE_API int16 | GetVersion () |
| static ENGINE_API bool | Parse (const uint8 *InMemory, uint32 InSize, uint32 &InOutOffset, FStreamedAudioChunkSeekTable &OutTable) |
| static ENGINE_API int32 | CalcSize (int32 NumEntries, EChunkSeekTableMode InMode=EChunkSeekTableMode::ConstantSamplesPerEntry) |
Class representing an audio seek-table. Typically embedded in a bit-stream.
| FStreamedAudioChunkSeekTable::FStreamedAudioChunkSeekTable | ( | EChunkSeekTableMode | InMode = EChunkSeekTableMode::ConstantSamplesPerEntry | ) |
Construct a seek-table. The mode determines the internal representation.
| InMode | Mode the table will operate in. |
Add an item to the seek table.
| InTimeInAudioFrames | Time of this entry in audio frames |
| InOffset | Offset in the file of where this time happens |
| int32 FStreamedAudioChunkSeekTable::CalcSize | ( | ) | const |
Member version. Calculate the size needed for the table.
|
static |
Calculate the size needed for the table.
This is cheaper than serializing the entire struct and counting the bytes.
| InMode | The Mode the table is running in (i.e. constant/variable) |
Finds an offset for seeking given a time
| InTimeInAudioFrames | Time to search for in audio frames |
Finds a time given an offset (reverse look up)
| InOffset | Offset in the file |
|
inline |
Retrieves the Indexed item from the table
| InIndex | Index of item to retrieve (if out of bounds will fail) |
| OutOffset | The found offset (if successful) |
| OutTime | The found time (if successful) |
|
static |
Gets the current version of Seek table. This can be used in the DDC key.
|
inline |
Get the number of Entries in the seek table.
|
static |
Parse a seek-table from memory.
| InMemory | Pointer to memory where to load from. |
| InSize | Size of memory |
| InOutOffset | Output the offset of the end of the table |
| OutTable | Table that's loaded |
| void FStreamedAudioChunkSeekTable::Reset | ( | ) |
Empties the table
Serialize the table to/from the archive
| Ar | Archive to load/save |