AETime.h File Reference
#import <Foundation/Foundation.h>
#import <AudioToolbox/AudioToolbox.h>

Go to the source code of this file.

Typedefs

typedef uint64_t AEHostTicks
 
typedef double AESeconds
 

Functions

void AETimeInit ()
 Initialize.
 
AEHostTicks AECurrentTimeInHostTicks (void)
 Get current global timestamp, in host ticks.
 
AESeconds AECurrentTimeInSeconds (void)
 Get current global timestamp, in seconds.
 
AEHostTicks AEHostTicksFromSeconds (AESeconds seconds)
 Convert time in seconds to host ticks.
 
AESeconds AESecondsFromHostTicks (AEHostTicks ticks)
 Convert time in host ticks to seconds.
 
AudioTimeStamp AETimeStampWithHostTicks (AEHostTicks ticks)
 Create an AudioTimeStamps with a host ticks value.
 
AudioTimeStamp AETimeStampWithSamples (Float64 samples)
 Create an AudioTimeStamps with a sample time value.
 

Variables

const AudioTimeStamp AETimeStampNone
 An empty timestamp.
 

Typedef Documentation

typedef uint64_t AEHostTicks
typedef double AESeconds

Function Documentation

void AETimeInit ( )

Initialize.

AEHostTicks AECurrentTimeInHostTicks ( void  )

Get current global timestamp, in host ticks.

AESeconds AECurrentTimeInSeconds ( void  )

Get current global timestamp, in seconds.

AEHostTicks AEHostTicksFromSeconds ( AESeconds  seconds)

Convert time in seconds to host ticks.

Parameters
secondsThe time in seconds
Returns
The time in host ticks
AESeconds AESecondsFromHostTicks ( AEHostTicks  ticks)

Convert time in host ticks to seconds.

Parameters
ticksThe time in host ticks
Returns
The time in seconds
AudioTimeStamp AETimeStampWithHostTicks ( AEHostTicks  ticks)

Create an AudioTimeStamps with a host ticks value.

If a zero value is provided, then AETimeStampNone will be returned.

Parameters
ticksThe time in host ticks
Returns
The timestamp
AudioTimeStamp AETimeStampWithSamples ( Float64  samples)

Create an AudioTimeStamps with a sample time value.

Parameters
samplesThe time in samples
Returns
The timestamp

Variable Documentation

const AudioTimeStamp AETimeStampNone

An empty timestamp.