Add OutputRate and OutputFormat properties to the D-Bus interface.

This commit is contained in:
Mike Brady
2022-11-12 17:45:36 +00:00
parent 61865bf36f
commit 9af924dd43
3 changed files with 4 additions and 5564 deletions
+2
View File
@@ -1041,6 +1041,8 @@ static void on_dbus_name_acquired(GDBusConnection *connection, const gchar *name
#endif
shairport_sync_set_service_name(SHAIRPORT_SYNC(shairportSyncSkeleton), config.service_name);
shairport_sync_set_output_rate(SHAIRPORT_SYNC(shairportSyncSkeleton), config.output_rate);
shairport_sync_set_output_format(SHAIRPORT_SYNC(shairportSyncSkeleton), sps_format_description_string(config.output_format));
#ifdef CONFIG_AIRPLAY_2
shairport_sync_set_protocol(SHAIRPORT_SYNC(shairportSyncSkeleton), "AirPlay 2");
-5564
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -25,6 +25,8 @@
<property name="VersionString" type="s" access="read" />
<property name="Protocol" type="s" access="read" />
<property name="ServiceName" type="s" access="read" />
<property name="OutputFormat" type="s" access="read" />
<property name="OutputRate" type="i" access="read" />
</interface>
<interface name="org.gnome.ShairportSync.Diagnostics">
<property name="Verbosity" type="i" access="readwrite" />