FQuartzClock

Class that encapsulates sample-accurate timing logic, as well as firing QuantizedAudioCommands.

Windows
MacOS
Linux

References

Module

AudioMixer

Header

/Engine/Source/Runtime/AudioMixer/Public/Quartz/AudioMixerClock.h

Include

#include "Quartz/AudioMixerClock.h"

Syntax

class FQuartzClock

Remarks

Class that encapsulates sample-accurate timing logic, as well as firing QuantizedAudioCommands.

Constructors

Name Description

Public function

FQuartzClock

(
    const FName & InName,
    const FQuartzClockSettings & InCloc...,
    FQuartzClockManager * InOwningC...
)

Ctor

Destructors

Name Description

Public function

~FQuartzClock()

Dtor

Functions

Name Description

Public function

void

 

AddQuantizedCommand

Add a new event to be triggered by this clock TODO: return a handle to this event so "looping" events can be canceled

Public function

bool

 

CancelQuantizedCommand

Cancel pending command.

Public function

void

 

ChangeTickRate

(
    FQuartzClockTickRate InNewTickRate,
    int32 NumFramesLeft
)

Alter the tick rate (take by-value to make sample-rate adjustments in-place)

Public function

void

 

ChangeTimeSignature

(
    const FQuartzTimeSignature & InNewT...
)

Alter the time signature

Public function

bool

 

DoesMatchSettings

(
    const FQuartzClockSettings & InCloc...
)

Does this clock match the provided settings.

Public function

FMixerDevice ...

 

GetMixerDevice()

Public function

FName

 

GetName()

Get the identifier of the clock

Public function

FMixerSource...

 

GetSourceManager()

Public function

FQuartzClock ...

 

GetTickRate()

Get the tick rate

Public function

bool

 

HasPendingEvents()

Does the clock have any pending events

Public function

bool

 

IgnoresFlush()

Clock will persist across level changes

Public function

void

 

Pause()

Stop ticking the clock

Public function

void

 

ResetTransport()

Public function

void

 

Restart

(
    bool bPause
)

Reset the metronome

Public function

void

 

Resume()

Start ticking the clock

Public function

void

 

SetSampleRate

(
    float InNewSampleRate
)

Set the sample rate of the clock.

Public function

void

 

Shutdown()

Shutdown

Public function

void

 

SubscribeToAllTimeDivisions

(
    MetronomeCommandQueuePtr InListener...
)

Public function

void

 

SubscribeToTimeDivision

(
    MetronomeCommandQueuePtr InListener...,
    EQuartzCommandQuantization InQuanti...
)

Public function

void

 

Tick

(
    int32 InNumFramesUntilNextTick
)

Tick the clock

Public function

void

 

UnsubscribeFromAllTimeDivisions

(
    MetronomeCommandQueuePtr InListener...
)

Public function

void

 

UnsubscribeFromTimeDivision

(
    MetronomeCommandQueuePtr InListener...,
    EQuartzCommandQuantization InQuanti...
)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback