]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
add volume-up and volume-down to the dbus test client. Quieten a debug message.
authorMike Brady <mikebrady@eircom.net>
Sun, 8 Sep 2019 16:43:07 +0000 (17:43 +0100)
committerMike Brady <mikebrady@eircom.net>
Sun, 8 Sep 2019 16:43:07 +0000 (17:43 +0100)
dacp.c
shairport-sync-dbus-test-client.c

diff --git a/dacp.c b/dacp.c
index 46d92b0bc1caf5560ed7c4c258d993f5ad70a51a..79447afb0e9fcb6dd0a9a6b45767263ced9d0d0c 100644 (file)
--- 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) {
index 4d5703a4a277d25a4c9826ab45def0c46d257256..96a7de8dd5b06bba0dbd1886efa16ca2e181428d 100644 (file)
@@ -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);