Defined in carb/audio/AudioUtils.h

inline void carb::audio::generateSoundFormat(SoundFormat *out, SampleFormat format, size_t channels, size_t frameRate, SpeakerMode mask = kSpeakerModeDefault)

Generates a SoundFormat based on the 4 parameters given.

  • out[out] The SoundFormat to generate.

  • format[in] The format of the samples in the sound.

  • frameRate[in] The frame rate of t

  • channels[in] The number of channels in the sound.

  • mask[in] The speaker mask of the sound.