add volume-up and volume-down to the dbus test client. Quieten a debug message.

This commit is contained in:
Mike Brady
2019-09-08 17:43:07 +01:00
parent 2b980ff2a8
commit d734b7e71d
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -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) {
+9
View 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);