# GetAudioFrameCount

Gets count of frames executed.

### Synopsis

`uint16 GetAudioFrameCount (void)`

### Description

Gets 16-bit value that is incremented on every sample frame, typically at 44100Hz. This is only useful for determining relative elapsed frame counts.

It can be used as a measure of audio time more precise than `GetAudioTime()`.

### Arguments

None

### Return Value

16-bit sample frame count.

### Implementation

SWI implemented in Audio folio V24.

### Associated Files

audio.h

### Example

Example 1: GetAudioFrameCount example

``

    NewFrameCount = GetAudioFrameCount();
    ElapsedFrames = (NewFrameCount - OldFrameCount) & OxFFFF;
    OldFrameCount = NewFrameCount;

### Caveats

`GetAudioFrameCount()` must be called at least once every 65536 (i.e. 2**16) sample frames to avoid wrap around of the 16-bit value. Call at least every second to be safe.

### See Also

``GetAudioCyclesUsed`()`