diff options
author | David Robillard <d@drobilla.net> | 2020-11-28 17:02:08 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-28 17:39:10 +0100 |
commit | 3d5ef98d6eb01c8f7c09873cd94601d4ce97c1ac (patch) | |
tree | 4ad8fd513ee1ddc8dd4874781466e7ea88ba9e65 /src | |
parent | e2982b5f760a862e091992dc0424b2f78c6b724b (diff) | |
download | patchage-3d5ef98d6eb01c8f7c09873cd94601d4ce97c1ac.tar.gz patchage-3d5ef98d6eb01c8f7c09873cd94601d4ce97c1ac.tar.bz2 patchage-3d5ef98d6eb01c8f7c09873cd94601d4ce97c1ac.zip |
Fix sample rate with Jack DBus
Diffstat (limited to 'src')
-rw-r--r-- | src/JackDbusDriver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |