return;
}
+ if (!sink->supported_sample_formats) {
+ pa_log_error("supported sample formats is not set on this sink");
+ pa_dbus_send_error(conn, msg, DBUS_ERROR_NOT_SUPPORTED, "%s", "org.tizen.multimedia.audio.InvalidOperation");
+ return;
+ }
+
dbus_message_iter_init_append(reply, &msg_iter);
pa_assert_se(dbus_message_iter_open_container(&msg_iter, DBUS_TYPE_ARRAY, "s", &array_iter));
for (i = 0; sink->supported_sample_formats[i] != PA_SAMPLE_MAX; i++) {
return;
}
+ if (!sink->supported_sample_rates) {
+ pa_log_error("supported sample rates is not set on this sink");
+ pa_dbus_send_error(conn, msg, DBUS_ERROR_NOT_SUPPORTED, "%s", "org.tizen.multimedia.audio.InvalidOperation");
+ return;
+ }
+
dbus_message_iter_init_append(reply, &msg_iter);
pa_assert_se(dbus_message_iter_open_container(&msg_iter, DBUS_TYPE_ARRAY, "u", &array_iter));
for (i = 0; sink->supported_sample_rates[i]; i++) {