GetAudioRate

Asks for current audio clock rate.

Synopsis

frac16 GetAudioRate (void)

Description

This function returns the current clock rate in 16.16 fractional Hz, using fractions so that you can do more accurate timing calculations.

Arguments

None.

Return Value

The function returns the current audio rate as a frac16 value in Hz.

Implementation

Folio call implemented in Audio folio V20.

Examples

    // To convert the result of this function to ticks per second,
    // use ConvertF16_32().
TicksPerSecond = ConvertF16_32 (GetAudioRate());

Associated Files

audio.h

See Also

SignalAtTime(), GetAudioDuration(), SetAudioRate()