From: Mike Brady Date: Mon, 9 Oct 2017 10:02:54 +0000 (+0100) Subject: Checnk the order of the commands a little X-Git-Tag: 3.2d10~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3bfb048cac138f8e9230e1cb4229bf6e06ff090;p=thirdparty%2Fshairport-sync.git Checnk the order of the commands a little --- diff --git a/dbus/src/shairport-sync-dbus-client.c b/dbus/src/shairport-sync-dbus-client.c index a5a03923..0e73489b 100644 --- a/dbus/src/shairport-sync-dbus-client.c +++ b/dbus/src/shairport-sync-dbus-client.c @@ -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);