summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-28 17:02:08 +0100
committerDavid Robillard <d@drobilla.net>2020-11-28 17:39:10 +0100
commit3d5ef98d6eb01c8f7c09873cd94601d4ce97c1ac (patch)
tree4ad8fd513ee1ddc8dd4874781466e7ea88ba9e65
parente2982b5f760a862e091992dc0424b2f78c6b724b (diff)
downloadpatchage-3d5ef98d6eb01c8f7c09873cd94601d4ce97c1ac.tar.gz
patchage-3d5ef98d6eb01c8f7c09873cd94601d4ce97c1ac.tar.bz2
patchage-3d5ef98d6eb01c8f7c09873cd94601d4ce97c1ac.zip
Fix sample rate with Jack DBus
-rw-r--r--NEWS5
-rw-r--r--src/JackDbusDriver.cpp6
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 <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);