]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Checnk the order of the commands a little
authorMike Brady <mikebrady@eircom.net>
Mon, 9 Oct 2017 10:02:54 +0000 (11:02 +0100)
committerMike Brady <mikebrady@eircom.net>
Mon, 9 Oct 2017 10:02:54 +0000 (11:02 +0100)
dbus/src/shairport-sync-dbus-client.c

index a5a039236e7554ab967f1eab96903cde1469f8f7..0e73489bc996b81f07d149593c0e5a26373242a1 100644 (file)
@@ -93,21 +93,21 @@ void main(void) {
   sleep(1);
   shairport_sync_set_volume(SHAIRPORT_SYNC(proxy), 0.0);
   sleep(1);
-  shairport_sync_set_loudness_filter_active(SHAIRPORT_SYNC(proxy), FALSE);
-  sleep(1);
-  shairport_sync_set_loudness_threshold(SHAIRPORT_SYNC(proxy), -20.0);
+  shairport_sync_set_volume(SHAIRPORT_SYNC(proxy), -25.0);
   sleep(1);
   shairport_sync_set_loudness_filter_active(SHAIRPORT_SYNC(proxy), TRUE);
-  sleep(1);
+  sleep(10);
+  shairport_sync_set_loudness_threshold(SHAIRPORT_SYNC(proxy), -20.0);
+  sleep(5);
   shairport_sync_set_loudness_filter_active(SHAIRPORT_SYNC(proxy), FALSE);
-  sleep(1);
-  shairport_sync_set_loudness_threshold(SHAIRPORT_SYNC(proxy), -10.0);
-  shairport_sync_set_loudness_filter_active(SHAIRPORT_SYNC(proxy), TRUE);
-  sleep(1);
+  sleep(5);
   shairport_sync_set_loudness_filter_active(SHAIRPORT_SYNC(proxy), TRUE);
+  sleep(5);
+  shairport_sync_set_loudness_threshold(SHAIRPORT_SYNC(proxy), -10.0);
+  sleep(10);
+  shairport_sync_set_loudness_filter_active(SHAIRPORT_SYNC(proxy), FALSE);
   sleep(1);
   shairport_sync_call_vol_up(SHAIRPORT_SYNC(proxy), NULL,NULL,NULL);
-  sleep(5);
   g_print("Finished test...\n");
   g_main_loop_quit(loop);
   pthread_join(dbus_thread, NULL);