GetAudioTime

Queries current audio time.

Synopsis

AudioTime GetAudioTime (void)

Description

This function returns the current 32-bit audio time. This time comes from an interrupt from the DSP and typically increases at 240 Hz.

Arguments

None.

Return Value

The function returns the current audio time expressed in audio ticks.

Implementation

Folio call implemented in Audio folio V20.

Caveats

Note that the audio clock rate can be changed by other tasks, so the audio time isn't guaranteed to be constant unless the task making this call takes ownership of the clock using OwnAudioClock(). Of course, owning the audio clock and hanging onto the lock forever causes any other task trying to do the same to fail.

Associated Files

audio.h

See Also

SignalAtTime(), GetAudioRate(), GetAudioDuration(), OwnAudioClock(), GetAudioFolioInfo()