Navigation
API > API/Runtime > API/Runtime/AudioMixer > API/Runtime/AudioMixer/Quartz
References
| Module | AudioMixer |
| Header | /Engine/Source/Runtime/AudioMixer/Public/Quartz/AudioMixerClock.h |
| Include | #include "Quartz/AudioMixerClock.h" |
Syntax
class FQuartzClockProxy
Remarks
FQuartzClockProxy: This class is a C++ handle to the underlying clock.
It is mostly a wrapper around a TWeakPtr
The getters query the underlying FQuartzClock directly, which returns values updated during the last audio-engine tick
If you need to add more getters, add copies of the members in question to FQuartzClock::FQuartzClockState and update FQuartzClock::UpdateCachedState() for thread-safe access (or manually protect access w/ CachedClockStateCritSec)
SendCommandToClock() can be used to execute lambdas at the beginning of the next clock tick. These lambdas can call FQuartzClock's public methods safely.
Your lambda will take an FQuartzClock* as an argument, which will be passed in by the FQuartzClock itself when it pumps the command queue.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TWeakPtr< FQuartzClock, ESPMode::ThreadSafe > | ClockWeakPtr |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Ctor | |||
FQuartzClockProxy
(
const FName& Name |
|||
FQuartzClockProxy
(
TSharedPtr< FQuartzClock, ESPMode::ThreadSafe > InClock |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| float | GetBeatProgressPercent
(
const EQuartzCommandQuantization& QuantizationType |
||
| FName | GetClockName () |
||
| FQuartzTransportTimeStamp | |||
| float | GetDurationOfQuantizationTypeInSeconds
(
const EQuartzCommandQuantization& QuantizationType, |
||
| float | |||
| Audio::FQuartzClockTickRate | GetTickRate () |
||
| bool | |||
| bool | IsValid () |
||
| bool | SendCommandToClock
(
TFunction< void(FQuartzClock*)> InCommand |
Returns false if the clock is not valid or has shut down |
Operators
| Type | Name | Description | |
|---|---|---|---|
| Implicit cast to underlying ID (FName) | |||
| bool | operator==
(
const FName& Name |