From b67718a09f1b1af1c3354fee8c97c831b0fbac39 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Thu, 28 Dec 2017 12:47:22 +0000 Subject: [PATCH] Add exploratory checks for volume --- dacp.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/dacp.c b/dacp.c index 5852eb2a..61a94f51 100644 --- a/dacp.c +++ b/dacp.c @@ -551,7 +551,27 @@ void *dacp_monitor_thread_code(void *na) { free(response); response = NULL; }; - sleep(1); + strcpy(command,"nowplayingartwork?mw=320&mh=320"); + debug(1,"Command: \"%s\", result is %d",command, dacp_send_command(command, &response, &le)); + if (response) { + free(response); + response = NULL; + } + /* + strcpy(command,"getproperty?properties=dmcp.volume"); + debug(1,"Command: \"%s\", result is %d",command, dacp_send_command(command, &response, &le)); + if (response) { + free(response); + response = NULL; + } + */ + strcpy(command,"setproperty?dmcp.volume=100.000000"); + debug(1,"Command: \"%s\", result is %d",command, dacp_send_command(command, &response, &le)); + if (response) { + free(response); + response = NULL; + } + sleep(2); } debug(1, "DACP monitor thread exiting."); pthread_exit(NULL);