NATIVE_API_TONE_PLAYER, /**< Tone-player Native API */
NATIVE_API_AUDIO_IO, /**< Audio-io Native API */
NATIVE_API_RECORDER, /**< Recorder Native API */
+ NATIVE_API_WEBRTC, /**< WebRTC Native API */
} native_api_e;
/**
//LCOV_EXCL_START
const char* _convert_api_name(native_api_e api_name)
{
- const char* name = NULL;
-
switch (api_name) {
case NATIVE_API_SOUND_MANAGER:
- name = "sound-manager";
- break;
+ return "sound-manager";
case NATIVE_API_PLAYER:
- name = "player";
- break;
+ return "player";
case NATIVE_API_WAV_PLAYER:
- name = "wav-player";
- break;
+ return "wav-player";
case NATIVE_API_TONE_PLAYER:
- name = "tone-player";
- break;
+ return "tone-player";
case NATIVE_API_AUDIO_IO:
- name = "audio-io";
- break;
+ return "audio-io";
case NATIVE_API_RECORDER:
- name = "recorder";
- break;
+ return "recorder";
+ case NATIVE_API_WEBRTC:
+ return "webrtc";
+ default:
+ return NULL;
}
-
- return name;
}
int _convert_sample_format_enum_to_str(sound_sample_format_e format, char **format_str)