113 if (std::strcmp(str,
"pcm_s8") == 0) {
116 if (std::strcmp(str,
"pcm_u8") == 0) {
119 if (std::strcmp(str,
"pcm_s16") == 0) {
122 if (std::strcmp(str,
"pcm_s24") == 0) {
125 if (std::strcmp(str,
"pcm_s32") == 0) {
128 if (std::strcmp(str,
"pcm_f32") == 0) {
131 if (std::strcmp(str,
"pcm_f64") == 0) {
134 if (std::strcmp(str,
"undefined") == 0) {
uint8_t audio_encoding_ground_value(const AudioEncoding encoding)
const char * to_string(const AudioEncoding encoding)
uint8_t audio_encoding_bytes_per_sample(const AudioEncoding encoding)
std::optional< AudioEncoding > audio_encoding_from_string(const char *str)