diff options
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | src/JackDbusDriver.cpp | 6 |
2 files changed, 6 insertions, 5 deletions
@@ -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 <d@drobilla.net> Sat, 28 Nov 2020 08:53:57 +0000 + -- David Robillard <d@drobilla.net> 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); |