Add a few more commands and clarify some text.
This commit is contained in:
@@ -190,32 +190,51 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
g_print("Starting test...\n");
|
||||
|
||||
g_print("Using the RemoteControl interface, set airplay volume to -30, -20, -10, 0 and -15 for two seconds each...\n");
|
||||
g_print("Using the RemoteControl interface, play for five seconds, pause for five seconds and then resume play...\n");
|
||||
g_print("Play...\n");
|
||||
shairport_sync_remote_control_call_play(SHAIRPORT_SYNC_REMOTE_CONTROL(proxy3), NULL, NULL, 0);
|
||||
sleep(5);
|
||||
g_print("Pause...\n");
|
||||
shairport_sync_remote_control_call_pause(SHAIRPORT_SYNC_REMOTE_CONTROL(proxy3), NULL, NULL, 0);
|
||||
sleep(5);
|
||||
g_print("Play...\n");
|
||||
shairport_sync_remote_control_call_play(SHAIRPORT_SYNC_REMOTE_CONTROL(proxy3), NULL, NULL, 0);
|
||||
sleep(5);
|
||||
g_print("Using the RemoteControl interface, set AirPlay Volume (range -30 to 0) to -30, -20, -10, 0 and -15 for five seconds each...\n");
|
||||
g_print("Set AirPlay Volume (range -30 to 0) to -30\n");
|
||||
shairport_sync_remote_control_call_set_airplay_volume(SHAIRPORT_SYNC_REMOTE_CONTROL(proxy3), -30, NULL, NULL, 0);
|
||||
sleep(2);
|
||||
sleep(5);
|
||||
g_print("Set AirPlay Volume (range -30 to 0) to -20\n");
|
||||
shairport_sync_remote_control_call_set_airplay_volume(SHAIRPORT_SYNC_REMOTE_CONTROL(proxy3), -20, NULL, NULL, 0);
|
||||
sleep(2);
|
||||
sleep(5);
|
||||
g_print("Set AirPlay Volume (range -30 to 0) to -10\n");
|
||||
shairport_sync_remote_control_call_set_airplay_volume(SHAIRPORT_SYNC_REMOTE_CONTROL(proxy3), -10, NULL, NULL, 0);
|
||||
sleep(2);
|
||||
sleep(5);
|
||||
g_print("Set AirPlay Volume (range -30 to 0) to -0\n");
|
||||
shairport_sync_remote_control_call_set_airplay_volume(SHAIRPORT_SYNC_REMOTE_CONTROL(proxy3), 0, NULL, NULL, 0);
|
||||
sleep(2);
|
||||
sleep(5);
|
||||
g_print("Set AirPlay Volume (range -30 to 0) to -15\n");
|
||||
shairport_sync_remote_control_call_set_airplay_volume(SHAIRPORT_SYNC_REMOTE_CONTROL(proxy3), -15, NULL, NULL, 0);
|
||||
sleep(2);
|
||||
sleep(5);
|
||||
|
||||
g_print("Using the AdvancedRemoteControl interface, set airplay volume to 20%%, 100%%, 40%% and 60%% for two seconds each...\n");
|
||||
g_print("Using the AdvancedRemoteControl interface, set Volume to 20%%, 100%%, 40%% and 60%% for five seconds each...\n");
|
||||
g_print("Set Volume to 20%%\n");
|
||||
shairport_sync_advanced_remote_control_call_set_volume(
|
||||
SHAIRPORT_SYNC_ADVANCED_REMOTE_CONTROL(proxy4), 20, NULL, NULL, 0);
|
||||
sleep(2);
|
||||
sleep(5);
|
||||
g_print("Set Volume to 100%%\n");
|
||||
shairport_sync_advanced_remote_control_call_set_volume(
|
||||
SHAIRPORT_SYNC_ADVANCED_REMOTE_CONTROL(proxy4), 100, NULL, NULL, 0);
|
||||
sleep(2);
|
||||
sleep(5);
|
||||
g_print("Set Volume to 40%%\n");
|
||||
shairport_sync_advanced_remote_control_call_set_volume(
|
||||
SHAIRPORT_SYNC_ADVANCED_REMOTE_CONTROL(proxy4), 40, NULL, NULL, 0);
|
||||
sleep(2);
|
||||
sleep(5);
|
||||
g_print("Set Volume to 50%%\n");
|
||||
shairport_sync_advanced_remote_control_call_set_volume(
|
||||
SHAIRPORT_SYNC_ADVANCED_REMOTE_CONTROL(proxy4), 60, NULL, NULL, 0);
|
||||
SHAIRPORT_SYNC_ADVANCED_REMOTE_CONTROL(proxy4), 50, NULL, NULL, 0);
|
||||
|
||||
sleep(2);
|
||||
sleep(5);
|
||||
g_print("Using the RemoteControl interface, increase volume for five seconds...\n");
|
||||
shairport_sync_remote_control_call_volume_up(SHAIRPORT_SYNC_REMOTE_CONTROL(proxy3), NULL, NULL,
|
||||
NULL);
|
||||
@@ -241,6 +260,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
shairport_sync_call_remote_command(SHAIRPORT_SYNC(proxy), "string",NULL,NULL,NULL);
|
||||
*/
|
||||
sleep(1);
|
||||
g_print("Finished test. Listening for property changes...\n");
|
||||
// g_main_loop_quit(loop);
|
||||
pthread_join(dbus_thread, NULL);
|
||||
|
||||
Reference in New Issue
Block a user