Defined in carb/audio/AudioUtils.h

inline size_t carb::audio::framesToMicroseconds(size_t frames, const SoundFormat *format)

converts a frame count at a given frame rate to a time in microseconds.

  • frames[in] the frame count to be converted.

  • format[in] the format information block for the sound data this time is being converted for.


the time in microseconds associated with the given number of frames playing at the requested frame rate.