carb::audio::getSpeakerFromSpeakerFlag

Defined in carb/audio/AudioUtils.h

constexpr Speaker carb::audio::getSpeakerFromSpeakerFlag(SpeakerMode flag)

retrieves a speaker name from a single speaker mode flag.

Parameters

flag[in] a single speaker flag to convert to a speaker name. This must be one of the fSpeakerFlag* speaker flags.

Return values

Speaker::eCount – if an invalid speaker flag is passed in.

Returns

one of the Speaker names if converted successfully.