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 FQuartzClock
Remarks
FQuartzClock: This class receives, schedules, and fires quantized commands. The underlying FQuartzMetronome handles all counting / timing logic.
This class gets ticked externally (i.e. by some Clock Manager) and counts down the time-to-fire the commands in audio frames.
UpdateCachedState() updates a game-thread copy of data accessed via FQuartzClockProxy (see FQuartzClockState)
Constructors
| Type | Name | Description | |
|---|---|---|---|
FQuartzClock
(
const FName& InName, |
Ctor |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Dtor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddQuantizedCommand
(
FQuartzQuantizedCommandInitInfo& InQuantizationCommandInitInfo |
Quantized Command Management: | |
| void | AddQuantizedCommand
(
FQuartzQuantizedRequestData& InQuantizedRequestData |
Quantized Command Management: | |
| void | AddQuantizedCommand
(
FQuartzQuantizationBoundary InQuantizationBondary, |
||
| void | AddToTickDelay
(
int32 NumFramesOfDelayToAdd |
(used for StartOtherClock command to handle the sub-tick as the target clock) | |
| bool | CancelQuantizedCommand
(
TSharedPtr< IQuartzQuantizedCommand > InCommandPtr |
||
| void | ChangeTickRate
(
FQuartzClockTickRate InNewTickRate, |
Transport Control: alter the tick rate (take by-value to make sample-rate adjustments in-place) | |
| void | ChangeTimeSignature
(
const FQuartzTimeSignature& InNewTimeSignature |
||
| bool | DoesMatchSettings
(
const FQuartzClockSettings& InClockSettings |
||
| float | GetBeatProgressPercent
(
const EQuartzCommandQuantization& QuantizationType |
||
| FQuartzClockManager * | |||
| FQuartzClockCommandQueueWeakPtr | |||
| FQuartzTransportTimeStamp | |||
| float | GetDurationOfQuantizationTypeInSeconds
(
const EQuartzCommandQuantization& QuantizationType, |
||
| float | |||
| FMixerDevice * | |||
| FName | GetName () |
||
| FMixerSourceManager * | |||
| FQuartzClockTickRate | GetTickRate () |
Getters: | |
| bool | |||
| bool | IgnoresFlush () |
||
| bool | IsRunning () |
||
| void | LowResolutionTick
(
float InDeltaTimeSeconds |
Low-resolution clock update (not sample-accurate!, useful when running without an Audio Device) | |
| int32 | |||
| void | Pause () |
||
| void | |||
| void | Restart
(
bool bPause |
||
| void | Resume () |
||
| void | SetSampleRate
(
float InNewSampleRate |
||
| void | SetTickDelay
(
int32 NumFramesOfDelay |
(used for StartOtherClock command to handle the sub-tick as the target clock) | |
| void | Shutdown () |
||
| void | Stop
(
bool CancelPendingEvents |
||
| void | SubscribeToAllTimeDivisions
(
FQuartzGameThreadSubscriber InSubscriber |
||
| void | SubscribeToTimeDivision
(
FQuartzGameThreadSubscriber InSubscriber, |
Metronome Event Subscription: | |
| void | Tick
(
int32 InNumFramesUntilNextTick |
Sample accurate clock update | |
| void | UnsubscribeFromAllTimeDivisions
(
FQuartzGameThreadSubscriber InSubscriber |
||
| void | UnsubscribeFromTimeDivision
(
FQuartzGameThreadSubscriber InSubscriber, |