Navigation
API > API/Plugins > API/Plugins/AudioInsights > API/Plugins/AudioInsights/FAudioCachedMessageChunk
Description
Finds the closest message to a specific timestamp and where predicate returns true. Will iterate backwards from param Timestamp until the first message of type MessageID is found
| Name | FindClosestMessageByPredicate |
| Type | function |
| Header File | /Engine/Plugins/AudioInsights/Source/AudioInsights/Public/Cache/AudioCachedMessageChunk.h |
| Include Path | #include "Cache/AudioCachedMessageChunk.h" |
template<TIsCacheableMessage T, typename Predicate>
const T * FindClosestMessageByPredicate
(
const FName & MessageID,
const double Timestamp,
Predicate Pred
) const
Parameters
| Name | Remarks |
|---|---|
| Predicate | A callable that returns a BooleanTestable value. E.g. const T& InMessage{ return InMessage.GetID() == 10; } |