* @since_tizen 3.0
*/
typedef enum {
- SOUND_STREAM_TYPE_RINGTONE_CALL = 100, /**< Sound stream type for ringtone for call */
- SOUND_STREAM_TYPE_RINGBACKTONE_CALL, /**< Sound stream type for ringback tone for call */
- SOUND_STREAM_TYPE_VOICE_CALL, /**< Sound stream type for voice-call */
- SOUND_STREAM_TYPE_VIDEO_CALL, /**< Sound stream type for video-call */
- SOUND_STREAM_TYPE_RADIO, /**< Sound stream type for radio */
- SOUND_STREAM_TYPE_LOOPBACK, /**< Sound stream type for loopback */
- SOUND_STREAM_TYPE_LOOPBACK_MIRRORING, /**< Sound stream type for loopback-mirroring */
- SOUND_STREAM_TYPE_SOLO, /**< Sound stream type for solo */
+ SOUND_STREAM_TYPE_RINGTONE_CALL = 100, /**< Sound stream type for ringtone for call */
+ SOUND_STREAM_TYPE_RINGBACKTONE_CALL, /**< Sound stream type for ringback tone for call */
+ SOUND_STREAM_TYPE_VOICE_CALL, /**< Sound stream type for voice-call */
+ SOUND_STREAM_TYPE_VIDEO_CALL, /**< Sound stream type for video-call */
+ SOUND_STREAM_TYPE_RADIO, /**< Sound stream type for radio */
+ SOUND_STREAM_TYPE_LOOPBACK, /**< Sound stream type for loopback */
+ SOUND_STREAM_TYPE_LOOPBACK_MIRRORING, /**< Sound stream type for loopback-mirroring */
+ SOUND_STREAM_TYPE_SOLO, /**< Sound stream type for solo */
+ SOUND_STREAM_TYPE_VOICE_RECOGNITION_SERVICE, /**< Sound stream type for voice recognition by service (Since 4.0) */
} sound_stream_type_internal_e;
/**
case SOUND_STREAM_TYPE_SOLO:
*stream_type = "solo";
break;
+ case SOUND_STREAM_TYPE_VOICE_RECOGNITION_SERVICE:
+ *stream_type = "voice-recognition-service";
+ break;
default:
LOGE("could not find the stream_type[%d] in this switch case statement", stream_type_enum);
ret = MM_ERROR_SOUND_INTERNAL;
} else if (!strncmp(stream_type, "voice-information", SOUND_STREAM_TYPE_LEN)) {
*change_reason = SOUND_STREAM_FOCUS_CHANGED_BY_VOICE_INFORMATION;
- } else if (!strncmp(stream_type, "voice-recognition", SOUND_STREAM_TYPE_LEN)) {
+ } else if (!strncmp(stream_type, "voice-recognition", SOUND_STREAM_TYPE_LEN) ||
+ !strncmp(stream_type, "voice-recognition-service", SOUND_STREAM_TYPE_LEN)) {
*change_reason = SOUND_STREAM_FOCUS_CHANGED_BY_VOICE_RECOGNITION;
} else if (!strncmp(stream_type, "ringtone-voip", SOUND_STREAM_TYPE_LEN) ||
!strncmp(stream_type, "radio", SOUND_STREAM_TYPE_LEN) ||
!strncmp(stream_type, "voice-information", SOUND_STREAM_TYPE_LEN) ||
!strncmp(stream_type, "voice-recognition", SOUND_STREAM_TYPE_LEN) ||
+ !strncmp(stream_type, "voice-recognition-service", SOUND_STREAM_TYPE_LEN) ||
!strncmp(stream_type, "loopback", SOUND_STREAM_TYPE_LEN) ||
!strncmp(stream_type, "ext-media", SOUND_STREAM_TYPE_LEN)) {
*change_reason = SOUND_SESSION_INTERRUPTED_BY_MEDIA;