Browse Source

Add ENGINE_CALLBACK_IDLE

tags/1.9.4
falkTX 11 years ago
parent
commit
862bb1d53f
3 changed files with 20 additions and 6 deletions
  1. +10
    -3
      source/backend/CarlaBackend.h
  2. +8
    -3
      source/carla_backend.py
  3. +2
    -0
      source/utils/CarlaBackendUtils.hpp

+ 10
- 3
source/backend/CarlaBackend.h View File

@@ -910,22 +910,29 @@ typedef enum {
*/
ENGINE_CALLBACK_SAMPLE_RATE_CHANGED = 33,

/*!
* Idle frontend.\n
* This is used by the engine during long operations that might block the frontend,
* giving it the possibility to idle while the operation is still in place.
*/
ENGINE_CALLBACK_IDLE = 34,

/*!
* Show a message as information.
* @param valueStr The message
*/
ENGINE_CALLBACK_INFO = 34,
ENGINE_CALLBACK_INFO = 35,

/*!
* Show a message as an error.
* @param valueStr The message
*/
ENGINE_CALLBACK_ERROR = 35,
ENGINE_CALLBACK_ERROR = 36,

/*!
* The engine has crashed or malfunctioned and will no longer work.
*/
ENGINE_CALLBACK_QUIT = 36
ENGINE_CALLBACK_QUIT = 37

} EngineCallbackOpcode;



+ 8
- 3
source/carla_backend.py View File

@@ -651,16 +651,21 @@ ENGINE_CALLBACK_BUFFER_SIZE_CHANGED = 32
# @param value3 New sample rate
ENGINE_CALLBACK_SAMPLE_RATE_CHANGED = 33

# Idle frontend.
# This is used by the engine during long operations that might block the frontend,
# giving it the possibility to idle while the operation is still in place.
ENGINE_CALLBACK_IDLE = 34

# Show a message as information.
# @param valueStr The message
ENGINE_CALLBACK_INFO = 34
ENGINE_CALLBACK_INFO = 35

# Show a message as an error.
# @param valueStr The message
ENGINE_CALLBACK_ERROR = 35
ENGINE_CALLBACK_ERROR = 36

# The engine has crashed or malfunctioned and will no longer work.
ENGINE_CALLBACK_QUIT = 36
ENGINE_CALLBACK_QUIT = 37

# ------------------------------------------------------------------------------------------------------------
# Engine Option


+ 2
- 0
source/utils/CarlaBackendUtils.hpp View File

@@ -271,6 +271,8 @@ const char* EngineCallbackOpcode2Str(const EngineCallbackOpcode opcode) noexcept
return "ENGINE_CALLBACK_BUFFER_SIZE_CHANGED";
case ENGINE_CALLBACK_SAMPLE_RATE_CHANGED:
return "ENGINE_CALLBACK_SAMPLE_RATE_CHANGED";
case ENGINE_CALLBACK_IDLE:
return "ENGINE_CALLBACK_IDLE";
case ENGINE_CALLBACK_INFO:
return "ENGINE_CALLBACK_INFO";
case ENGINE_CALLBACK_ERROR:


Loading…
Cancel
Save