From: Mike Brady Date: Sun, 8 Sep 2019 16:43:07 +0000 (+0100) Subject: add volume-up and volume-down to the dbus test client. Quieten a debug message. X-Git-Tag: 3.3.3~2^2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d734b7e71d24f304ee62aa8a42520e07fc137a02;p=thirdparty%2Fshairport-sync.git add volume-up and volume-down to the dbus test client. Quieten a debug message. --- diff --git a/dacp.c b/dacp.c index 46d92b0b..79447afb 100644 --- a/dacp.c +++ b/dacp.c @@ -358,7 +358,7 @@ int dacp_send_command(const char *command, char **body, ssize_t *bodysize) { int send_simple_dacp_command(const char *command) { int reply = 0; char *server_reply = NULL; - debug(1, "send_simple_dacp_command: sending command \"%s\".", command); + debug(2, "send_simple_dacp_command: sending command \"%s\".", command); ssize_t reply_size = 0; reply = dacp_send_command(command, &server_reply, &reply_size); if (server_reply) { diff --git a/shairport-sync-dbus-test-client.c b/shairport-sync-dbus-test-client.c index 4d5703a4..96a7de8d 100644 --- a/shairport-sync-dbus-test-client.c +++ b/shairport-sync-dbus-test-client.c @@ -175,6 +175,15 @@ int main(int argc, char *argv[]) { sleep(5); shairport_sync_advanced_remote_control_call_set_volume( SHAIRPORT_SYNC_ADVANCED_REMOTE_CONTROL(proxy4), 60, NULL, NULL, 0); + + sleep(5); + g_print("Volume up for five seconds...\n"); + shairport_sync_remote_control_call_volume_up(SHAIRPORT_SYNC_REMOTE_CONTROL(proxy3), NULL, NULL, NULL); + + sleep(5); + g_print("Volume down\n"); + shairport_sync_remote_control_call_volume_down(SHAIRPORT_SYNC_REMOTE_CONTROL(proxy3), NULL, NULL, NULL); + /* // sleep(1); shairport_sync_set_loudness_filter_active(SHAIRPORT_SYNC(proxy), TRUE);