Navigation
API > API/Runtime > API/Runtime/AudioMixer
This class is a BP / Game thread wrapper around FQuartzClockProxy (to talk to the underlying clock)
...and inherits from FQuartzTickableObject (to listen to the underlying clock)
It can subscribe to Quantized Event & Metronome delegates to synchronize gameplay & VFX to Quartz events fired from the Audio Engine
| Name | UQuartzClockHandle |
| Type | class |
| Header File | /Engine/Source/Runtime/AudioMixer/Public/Quartz/AudioMixerClockHandle.h |
| Include Path | #include "Quartz/AudioMixerClockHandle.h" |
Syntax
UCLASS (BlueprintType, Blueprintable, Transient, ClassGroup=Quartz,
Meta=(BlueprintSpawnableComponent), MinimalAPI)
class UQuartzClockHandle :
public UObject ,
public FQuartzTickableObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UQuartzClockHandle
- FQuartzSubscriberCommandQueue::TConsumerBase< IMetronomeEventListener, ICommandListener, IQueueCommandListener > → FQuartzTickableObject → UQuartzClockHandle
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UQuartzClockHandle() |
Ctor | Quartz/AudioMixerClockHandle.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~UQuartzClockHandle() |
Dtor | Quartz/AudioMixerClockHandle.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CurrentClockId | FName | Quartz/AudioMixerClockHandle.h | ||
| RawHandle | Audio::FQuartzClockProxy | Quartz/AudioMixerClockHandle.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool DoesClockExist
(
const UObject* WorldContextObject |
Quartz/AudioMixerClockHandle.h | ||
float GetBeatProgressPercent
(
EQuartzCommandQuantization QuantizationBoundary, |
Returns the current progress until the next occurrence of the provided musical duration as a float value from 0 (previous beat) to 1 (next beat). | Quartz/AudioMixerClockHandle.h |
|
float GetBeatsPerMinute
(
const UObject* WorldContextObject |
Quartz/AudioMixerClockHandle.h |
|
|
FName GetClockName() |
Quartz/AudioMixerClockHandle.h | ||
bool GetCurrentTickRate
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h | ||
FQuartzTransportTimeStamp GetCurrentTimestamp
(
const UObject* WorldContextObject |
Retrieves a timestamp for the clock. | Quartz/AudioMixerClockHandle.h |
|
float GetDurationOfQuantizationTypeInSeconds
(
const UObject* WorldContextObject, |
Returns the duration in seconds of the given Quantization Type | Quartz/AudioMixerClockHandle.h |
|
float GetEstimatedRunTime
(
const UObject* WorldContextObject |
Returns the amount of time, in seconds, the clock has been running. Caution: due to latency, this will not be perfectly accurate. | Quartz/AudioMixerClockHandle.h |
|
float GetMillisecondsPerTick
(
const UObject* WorldContextObject |
Metronome getters. | Quartz/AudioMixerClockHandle.h |
|
float GetSecondsPerTick
(
const UObject* WorldContextObject |
Quartz/AudioMixerClockHandle.h |
|
|
float GetThirtySecondNotesPerMinute
(
const UObject* WorldContextObject |
Quartz/AudioMixerClockHandle.h |
|
|
float GetTicksPerSecond
(
const UObject* WorldContextObject |
Quartz/AudioMixerClockHandle.h |
|
|
bool IsClockRunning
(
const UObject* WorldContextObject |
Quartz/AudioMixerClockHandle.h |
|
|
void NotifyOnQuantizationBoundary
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h |
|
|
void PauseClock
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h |
|
|
virtual void ProcessCommand
(
const Audio::FQuartzQuantizedCommandDelegateData& Data |
Quartz/AudioMixerClockHandle.h | ||
virtual void ProcessCommand
(
const Audio::FQuartzMetronomeDelegateData& Data |
Quartz/AudioMixerClockHandle.h | ||
void QueueQuantizedSound
(
const UObject* WorldContextObject, |
// Set how early we would like to receive Metronome (not yet supported) and "About To Start" Delegates. (all other command delegates will execute as normal) | Quartz/AudioMixerClockHandle.h | |
void ResetTransport
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h |
|
|
void ResetTransportQuantized
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h |
|
|
void ResumeClock
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h |
|
|
void SetBeatsPerMinute
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h |
|
|
void SetMillisecondsPerTick
(
const UObject* WorldContextObject, |
Metronome Alteration (setters) | Quartz/AudioMixerClockHandle.h |
|
void SetSecondsPerTick
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h |
|
|
void SetThirtySecondNotesPerMinute
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h |
|
|
void SetTicksPerSecond
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h |
|
|
void StartClock
(
const UObject* WorldContextObject, |
Clock manipulation. | Quartz/AudioMixerClockHandle.h |
|
| "other" clock manipulation | Quartz/AudioMixerClockHandle.h |
|
|
void StopClock
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h |
|
|
void SubscribeToAllQuantizationEvents
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h |
|
|
UQuartzClockHandle * SubscribeToClock
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h | ||
void SubscribeToQuantizationEvent
(
const UObject* WorldContextObject, |
Metronome subscription. | Quartz/AudioMixerClockHandle.h |
|
void UnsubscribeFromAllTimeDivisions
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h |
|
|
void UnsubscribeFromTimeDivision
(
const UObject* WorldContextObject, |
Quartz/AudioMixerClockHandle.h |
|
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginDestroy() |
Quartz/AudioMixerClockHandle.h |