Defined in carb/audio/AudioUtils.h

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

converts a frame count to a byte offset.

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

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


the calculated byte offset to the start of the requested frame of audio data.