carb::audio::getSpeakerModeForCount

Defined in carb/audio/AudioUtils.h

constexpr SpeakerMode carb::audio::getSpeakerModeForCount(size_t channels)

retrieves a default speaker mode for a given channel count.

Parameters

channels[in] the number of channels to get the default speaker mode for.

Return values

kSpeakerModeDefault – if no standard speaker mode is defined for the given channel count.

Returns

a standard speaker mode with the requested channel count.