Gets count of frames executed.
uint16 GetAudioFrameCount (void)
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()
.
16-bit sample frame count.
SWI implemented in Audio folio V24.
audio.h
Example 1: GetAudioFrameCount example
NewFrameCount = GetAudioFrameCount(); ElapsedFrames = (NewFrameCount - OldFrameCount) & OxFFFF; OldFrameCount = NewFrameCount;
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.
GetAudioCyclesUsed
()