CompareAudioTimes

Compare two AudioTime values with wraparound.

Synopsis

int32 CompareAudioTimes (AudioTime t1, AudioTime t2)

Description

CompareAudioTimes() compares two AudioTime values taking into account wraparound. The two time values are assumed to be within 0x7fffffff ticks of each other. Time differences larger than this value will produce incorrect comparisons.

Arguments

t1
First AudioTime value to compare.
t2
Second AudioTime value to compare.

Return Value

>0
If t1 is later than t2.
0
If t1 equals t2.
<0
If t1 is earlier than t2.

Implementation

Macro implemented in audio.h V22.

Associated Files

audio.h

See Also

AudioTimeLaterThan(), AudioTimeLaterThanOrEqual()