diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/ControlBindings.cpp | 9 | ||||
-rw-r--r-- | src/server/events/Delta.cpp | 6 |
2 files changed, 11 insertions, 4 deletions
diff --git a/src/server/ControlBindings.cpp b/src/server/ControlBindings.cpp index 51784452..3e123a16 100644 --- a/src/server/ControlBindings.cpp +++ b/src/server/ControlBindings.cpp @@ -253,7 +253,8 @@ ControlBindings::control_to_port_value(RunContext& context, normal = (expf(normal) - 1.0f) / ((float)M_E - 1.0f); } - float min, max; + float min = 0.0f; + float max = 1.0f; get_range(context, port, &min, &max); return normal * (max - min) + min; @@ -269,7 +270,8 @@ ControlBindings::port_value_to_control(RunContext& context, return 0; } - float min, max; + float min = 0.0f; + float max = 1.0f; get_range(context, port, &min, &max); const float value = value_atom.get<float>(); @@ -337,7 +339,8 @@ ControlBindings::set_port_value(RunContext& context, Type type, int16_t value) { - float min, max; + float min = 0.0f; + float max = 1.0f; get_range(context, port, &min, &max); const float val = control_to_port_value(context, port, type, value); diff --git a/src/server/events/Delta.cpp b/src/server/events/Delta.cpp index 31f55306..3fb60bfe 100644 --- a/src/server/events/Delta.cpp +++ b/src/server/events/Delta.cpp @@ -224,7 +224,11 @@ Delta::pre_process(PreProcessContext& ctx) if (is_graph_object && !_object) { Raul::Path path(uri_to_path(_subject)); - bool is_graph = false, is_block = false, is_port = false, is_output = false; + + bool is_graph = false; + bool is_block = false; + bool is_port = false; + bool is_output = false; ingen::Resource::type(uris, _properties, is_graph, is_block, is_port, is_output); if (is_graph) { |