From 3d5ef98d6eb01c8f7c09873cd94601d4ce97c1ac Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 28 Nov 2020 17:02:08 +0100 Subject: Fix sample rate with Jack DBus --- NEWS | 5 +++-- src/JackDbusDriver.cpp | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index e4ae61d..ae84932 100644 --- a/NEWS +++ b/NEWS @@ -1,8 +1,9 @@ patchage (1.0.3) unstable; - * Fix connections with Jack DBus + * Fix making and breaking connections with Jack DBus + * Fix sample rate with Jack DBus - -- David Robillard Sat, 28 Nov 2020 08:53:57 +0000 + -- David Robillard Sat, 28 Nov 2020 16:01:42 +0000 patchage (1.0.2) stable; diff --git a/src/JackDbusDriver.cpp b/src/JackDbusDriver.cpp index 23ef53d..1384c11 100644 --- a/src/JackDbusDriver.cpp +++ b/src/JackDbusDriver.cpp @@ -1053,8 +1053,8 @@ JackDriver::set_buffer_size(jack_nframes_t size) float JackDriver::sample_rate() { - DBusMessage* reply_ptr = nullptr; - double sample_rate = 0.0; + DBusMessage* reply_ptr = nullptr; + dbus_uint32_t sample_rate = 0u; if (!call(true, JACKDBUS_IFACE_CONTROL, @@ -1066,7 +1066,7 @@ JackDriver::sample_rate() if (!dbus_message_get_args(reply_ptr, &_dbus_error, - DBUS_TYPE_DOUBLE, + DBUS_TYPE_UINT32, &sample_rate, DBUS_TYPE_INVALID)) { dbus_message_unref(reply_ptr); -- cgit v1.2.1