//AUDIO_IN_TYPE_VIDEO_CALL,
//AUDIO_IN_TYPE_RADIO,
AUDIO_IN_TYPE_LOOPBACK,
+ AUDIO_IN_TYPE_VOICE_RECOGNITION_SERVICE,
/* Output Type */
AUDIO_OUT_TYPE_MEDIA,
//AUDIO_OUT_TYPE_VIDEO_CALL,
//AUDIO_OUT_TYPE_RADIO,
//AUDIO_OUT_TYPE_LOOPBACK,
+ //AUDIO_OUT_TYPE_VOICE_RECOGNITION_SERVICE,
AUDIO_TYPE_MAX
};
//"call-video", /**< AUDIO_IN_TYPE_VIDEO_CALL */
//"radio", /**< AUDIO_IN_TYPE_RADIO */
"loopback-mirroring", /**< AUDIO_IN_TYPE_LOOPBACK */
+ "voice-recognition-service", /**< AUDIO_IN_TYPE_VOICE_RECOGNITION_SERVICE */
/* Output Type */
"media", /**< AUDIO_OUT_TYPE_MEDIA */
//"call-video", /**< AUDIO_OUT_TYPE_VIDEO_CALL */
//"radio", /**< AUDIO_OUT_TYPE_RADIO */
//"loopback-mirroring", /**< AUDIO_OUT_TYPE_LOOPBACK */
+ //"voice-recognition-service",/**< AUDIO_OUT_TYPE_VOICE_RECOGNITION_SERVICE */
};
unsigned int __mSampleRate;
// Check to invalid AudioType
CAudioInfo::EAudioType audioType = mAudioInfo.getAudioType();
- if (audioType < CAudioInfo::EAudioType::AUDIO_IN_TYPE_MEDIA || audioType > CAudioInfo::EAudioType::AUDIO_IN_TYPE_LOOPBACK) {
+ if (audioType < CAudioInfo::EAudioType::AUDIO_IN_TYPE_MEDIA || audioType >= CAudioInfo::EAudioType::AUDIO_OUT_TYPE_MEDIA) {
THROW_ERROR_MSG_FORMAT(CAudioError::EError::ERROR_INVALID_ARGUMENT,
"The audioType is invalid [type:%d]", static_cast<int>(audioType));
}