summaryrefslogtreecommitdiffstats
path: root/src/server/ControlBindings.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-02-17 19:23:12 +0100
committerDavid Robillard <d@drobilla.net>2017-02-18 19:38:13 +0100
commit2754f232613dca72c2f964d092569faf1a176c80 (patch)
tree6a8966ca56acd74a42c691be5d900d221ceb348d /src/server/ControlBindings.cpp
parentfa6bb9afe8fcf2b0b8348495b9c4e1d6425136f0 (diff)
downloadingen-2754f232613dca72c2f964d092569faf1a176c80.tar.gz
ingen-2754f232613dca72c2f964d092569faf1a176c80.tar.bz2
ingen-2754f232613dca72c2f964d092569faf1a176c80.zip
Reduce Driver coupling
Diffstat (limited to 'src/server/ControlBindings.cpp')
-rw-r--r--src/server/ControlBindings.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/ControlBindings.cpp b/src/server/ControlBindings.cpp
index 6ae4f856..57d037c3 100644
--- a/src/server/ControlBindings.cpp
+++ b/src/server/ControlBindings.cpp
@@ -25,7 +25,6 @@
#include "Buffer.hpp"
#include "ControlBindings.hpp"
-#include "Driver.hpp"
#include "Engine.hpp"
#include "PortImpl.hpp"
#include "RunContext.hpp"
@@ -210,8 +209,8 @@ get_range(RunContext& context, const PortImpl* port, float* min, float* max)
*min = port->minimum().get<float>();
*max = port->maximum().get<float>();
if (port->is_sample_rate()) {
- *min *= context.engine().driver()->sample_rate();
- *max *= context.engine().driver()->sample_rate();
+ *min *= context.engine().sample_rate();
+ *max *= context.engine().sample_rate();
}
}