FMixerNullCallback

[FMixerNullCallback](API\Runtime\AudioMixerCore\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.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FRunnable

FMixerNullCallback

References

Module

AudioMixerCore

Header

/Engine/Source/Runtime/AudioMixerCore/Public/AudioMixerNullDevice.h

Include

#include "AudioMixerNullDevice.h"

Syntax

class FMixerNullCallback : protected FRunnable

Remarks

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.

Constructors

Name Description

Public function

FMixerNullCallback

(
    float BufferDuration,
    TFunction< void()> InCallback,
    EThreadPriority ThreadPriority,
    bool bStartedPaused
)

Constructing the FMixerNullCallback immediately begins calling InCallback every BufferDuration seconds.

Destructors

Name Description

Public function Virtual

~FMixerNullCallback()

The destructor waits on Callback to be completed before stopping the thread.

Functions

Name Description

Public function

void

 

Pause()

Pause the thread, making it sleep until woken, not consuming cycles or buffers.

Public function

void

 

Resume

(
    const TFunction< void()>& InCallba...,
    float InBufferDuration
)

Resume a paused null renderer.

Overridden from FRunnable

Name Description

Public function Virtual

uint32

 

Run()

FRunnable override:

Public function Virtual

void

 

Stop()

Stops the runnable object.

This is called if a thread is requested to terminate early.