Defined in carb/audio/AudioUtils.h

constexpr size_t carb::audio::framesToMicroseconds(size_t frames, size_t frameRate)

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

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

  • frameRate[in] the frame rate of the audio that needs a time calculated.


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