Browse Source

Small corrections

tags/v1.9.11
falkTX 6 years ago
parent
commit
bb786a5a80
2 changed files with 6 additions and 6 deletions
  1. +1
    -1
      source/carla_backend_qtweb.py
  2. +5
    -5
      source/rest/carla-host.cpp

+ 1
- 1
source/carla_backend_qtweb.py View File

@@ -33,7 +33,7 @@ from time import sleep
# Iterates over the content of a file-like object line-by-line.
# Based on code by Lars Kellogg-Stedman, see https://github.com/requests/requests/issues/2433

def iterate_stream_nonblock(stream, chunk_size=128):
def iterate_stream_nonblock(stream, chunk_size=1024):
pending = None

while True:


+ 5
- 5
source/rest/carla-host.cpp View File

@@ -923,7 +923,7 @@ void handle_carla_set_drywet(const std::shared_ptr<Session> session)
CARLA_SAFE_ASSERT_RETURN(pluginId >= 0,)

const double value = std::atof(request->get_query_parameter("value").c_str());
CARLA_SAFE_ASSERT_RETURN(value >= 0.0 && value >= 1.0,)
CARLA_SAFE_ASSERT_RETURN(value >= 0.0 && value <= 1.0,)

carla_set_drywet(pluginId, value);
session->close(OK);
@@ -937,7 +937,7 @@ void handle_carla_set_volume(const std::shared_ptr<Session> session)
CARLA_SAFE_ASSERT_RETURN(pluginId >= 0,)

const double value = std::atof(request->get_query_parameter("value").c_str());
CARLA_SAFE_ASSERT_RETURN(value >= 0.0 && value >= 1.0,)
CARLA_SAFE_ASSERT_RETURN(value >= 0.0 && value <= 1.27,)

carla_set_volume(pluginId, value);
session->close(OK);
@@ -951,7 +951,7 @@ void handle_carla_set_balance_left(const std::shared_ptr<Session> session)
CARLA_SAFE_ASSERT_RETURN(pluginId >= 0,)

const double value = std::atof(request->get_query_parameter("value").c_str());
CARLA_SAFE_ASSERT_RETURN(value >= 0.0 && value >= 1.0,)
CARLA_SAFE_ASSERT_RETURN(value >= -1.0 && value <= 1.0,)

carla_set_balance_left(pluginId, value);
session->close(OK);
@@ -965,7 +965,7 @@ void handle_carla_set_balance_right(const std::shared_ptr<Session> session)
CARLA_SAFE_ASSERT_RETURN(pluginId >= 0,)

const double value = std::atof(request->get_query_parameter("value").c_str());
CARLA_SAFE_ASSERT_RETURN(value >= 0.0 && value >= 1.0,)
CARLA_SAFE_ASSERT_RETURN(value >= -1.0 && value <= 1.0,)

carla_set_balance_right(pluginId, value);
session->close(OK);
@@ -979,7 +979,7 @@ void handle_carla_set_panning(const std::shared_ptr<Session> session)
CARLA_SAFE_ASSERT_RETURN(pluginId >= 0,)

const double value = std::atof(request->get_query_parameter("value").c_str());
CARLA_SAFE_ASSERT_RETURN(value >= 0.0 && value >= 1.0,)
CARLA_SAFE_ASSERT_RETURN(value >= -1.0 && value <= 1.0,)

carla_set_panning(pluginId, value);
session->close(OK);


Loading…
Cancel
Save