carb::audio::bitsPerSampleToIntegerPcmSampleFormat¶
Defined in carb/audio/AudioUtils.h
-
constexpr SampleFormat
carb::audio
::
bitsPerSampleToIntegerPcmSampleFormat
(size_t bps)¶ converts a bits per sample count to an integer PCM sample format.
- Parameters
bps – [in] the bits per sample to convert.
- Returns
the integer PCM sample format that corresponds to the requested bit count.
- Returns
SampleFormat::eCount if no supported sample format matches the requested bit count.