![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AudioMixerNullDevice.h>
Inheritance diagram for Audio::FMixerNullCallback:Public Member Functions | |
| AUDIOMIXERCORE_API | FMixerNullCallback (float BufferDuration, TFunction< void()> InCallback, EThreadPriority ThreadPriority=TPri_TimeCritical, bool bStartedPaused=false) |
| virtual | ~FMixerNullCallback ()=default |
| virtual AUDIOMIXERCORE_API uint32 | Run () override |
| virtual AUDIOMIXERCORE_API void | Stop () override |
| AUDIOMIXERCORE_API void | Resume (const TFunction< void()> &InCallback, float InBufferDuration) |
| AUDIOMIXERCORE_API void | Pause () |
Additional Inherited Members | |
Protected Member Functions inherited from FRunnable | |
| virtual bool | Init () |
| virtual void | Exit () |
| virtual class FSingleThreadRunnable * | GetSingleThreadInterface () |
| virtual | ~FRunnable () |
FMixerNullCallback This class, when started, spawns a new high priority thread that exists to query an FAudioMixerPlatformInterface and immediately throw out whatever buffers it receives.
| Audio::FMixerNullCallback::FMixerNullCallback | ( | float | BufferDuration, |
| TFunction< void()> | InCallback, | ||
| EThreadPriority | ThreadPriority = TPri_TimeCritical, |
||
| bool | bStartedPaused = false |
||
| ) |
Constructing the FMixerNullCallback immediately begins calling InCallback every BufferDuration seconds.
|
virtualdefault |
The destructor waits on Callback to be completed before stopping the thread.
| void Audio::FMixerNullCallback::Pause | ( | ) |
| void Audio::FMixerNullCallback::Resume | ( | const TFunction< void()> & | InCallback, |
| float | InBufferDuration | ||
| ) |
|
overridevirtual |