Browse Source

SC: implement engine::setNumRows

tags/v1.3.0
Brian Heim 5 years ago
parent
commit
62a37de6a8
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/SuperColliderEngine.cpp

+ 5
- 1
src/SuperColliderEngine.cpp View File

@@ -38,6 +38,10 @@ public:
// These will invoke the interpreter
void interpret(const char * text) noexcept;
void evaluateProcessBlock(ProcessBlock* block) noexcept;
void setNumRows() noexcept {
std::string&& command = "VcvPrototypeProcessBlock.numRows = " + std::to_string(NUM_ROWS);
interpret(command.c_str());
}
int getFrameDivider() noexcept { return getResultAsInt("^~vcv_frameDivider"); }
int getBufferSize() noexcept { return getResultAsInt("^~vcv_bufferSize"); }

@@ -73,7 +77,7 @@ public:
_clientThread = std::thread([this, script]() {
_client.reset(new SC_VcvPrototypeClient(this));
_client->interpret(script.c_str());
// _client->setNumRows(); TODO
_client->setNumRows();
setFrameDivider(_client->getFrameDivider());
setBufferSize(_client->getBufferSize());
finishClientLoading();


Loading…
Cancel
Save