ret = MM_ERROR_SOUND_INTERNAL;
break;
}
- LOGI("stream_type_for_internal[%s]", stream_type);
+ LOGI("stream_type_for_internal[%s]", *stream_type);
return ret;
}
g_variant_unref(result);
if (info->priority == -1) {
- LOGE("could not find the info of stream type(%s)", stream_type);
+ LOGE("could not find the info of stream type(%s)", *stream_type);
ret = MM_ERROR_SOUND_INTERNAL;
}
}
return MM_ERROR_SOUND_INTERNAL;
}
+ LOGI("index(%u)", index);
+
builder_for_in_devices = g_variant_builder_new(G_VARIANT_TYPE("au"));
builder_for_out_devices = g_variant_builder_new(G_VARIANT_TYPE("au"));
for (i = 0; i < AVAIL_DEVICES_MAX; i++) {
else if (g_menu_state == CURRENT_STATUS_UNSET_DEVICE_INFO_CHANGED_CB)
g_print("*** press enter to unset device information changed cb\n");
else if (g_menu_state == CURRENT_STATUS_CREATE_STREAM_INFO)
- g_print("*** input stream type to create stream information\n(0:media, 1:system, 2:alarm, 3:notification, 4:emergency, 5:ringtone-call, 6:voice-call, 7:voip, 8:media-ext-only)\n");
+ g_print("*** input stream type to create stream information\n(0:media, 1:system, 2:alarm, 3:notification, 4:emergency, 5:ringtone-call, 6:voice-call, 7:voip, 8:media-ext-only, 9:loopback)\n");
else if (g_menu_state == CURRENT_STATUS_ADD_DEVICE_FOR_STREAM_ROUTING)
g_print("*** input device type to add (0:built-in mic, 1:built-in spk, 2:built-in rcv, 3:audio-jack, 4:bt)\n");
else if (g_menu_state == CURRENT_STATUS_REMOVE_DEVICE_FOR_STREAM_ROUTING)
case 8: /* media only for external devices */
type = SOUND_STREAM_TYPE_MEDIA_EXTERNAL_ONLY;
break;
+ case 9: /* loopback */
+ type = SOUND_STREAM_TYPE_LOOPBACK;
+ break;
default:
type = SOUND_STREAM_TYPE_MEDIA;
break;
}
- if (type == (int)SOUND_STREAM_TYPE_RINGTONE_CALL || type == (int)SOUND_STREAM_TYPE_VOICE_CALL)
+ if (type == (int)SOUND_STREAM_TYPE_RINGTONE_CALL ||
+ type == (int)SOUND_STREAM_TYPE_VOICE_CALL ||
+ type == (int)SOUND_STREAM_TYPE_LOOPBACK)
ret = sound_manager_create_stream_information_internal(type, focus_callback, NULL, &g_stream_info_h);
else
ret = sound_manager_create_stream_information(type, focus_callback, NULL, &g_stream_info_h);