add volume-up and volume-down to the dbus test client. Quieten a debug message.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user