Skip to content

Commit

Permalink
Add exploratory checks for volume
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebrady committed Dec 28, 2017
1 parent 6af24f7 commit b67718a
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion dacp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b67718a

Please sign in to comment.