carb::audio::getSpeakerCountForMode
Defined in carb/audio/AudioUtils.h
-
constexpr size_t carb::audio::getSpeakerCountForMode(SpeakerMode mode)
Retrieves the total number of speakers for a given speaker mode.
- Parameters
mode – [in] the speaker mode to retrieve the speaker count for.
- Returns
the number of speakers expected for the requested speaker mode.
- Returns
0 if an unknown speaker count is passed in.
- Returns
0 if kSpeakerModeDefault is passed in.