unreal.MetaSoundCacheSubsystem
¶
- class unreal.MetaSoundCacheSubsystem(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
AudioEngineSubsystem
UMetaSoundCacheSubsystem
C++ Source:
Plugin: Metasound
Module: MetasoundEngine
File: MetasoundOperatorCacheSubsystem.h
- precache_meta_sound(meta_sound, num_instances=1) None ¶
- Builds the requested number of MetaSound operators (asynchronously) and puts them in the pool for playback.
(If these operators are not yet available when the MetaSound attempts to play, one will be created Independent of this request.)
- Parameters:
meta_sound (MetaSoundSource) –
num_instances (int32) –
- remove_cached_operators_for_meta_sound(meta_sound) None ¶
Clear the operator pool of any operators associated with the given MetaSound
- Parameters:
meta_sound (MetaSoundSource) –
- touch_or_precache_meta_sound(meta_sound, num_instances=1) None ¶
- same as PrecacheMetaSound except cached operator that already exists in the cache will be moved to the top instead of building,
any operators that we couldn’t move to the top, will be built. (i.e. if 2 operators are already cached and Num Instances is 4, it will construct 2 and move the existing 2 to the top of the cache)
- Parameters:
meta_sound (MetaSoundSource) –
num_instances (int32) –