Browse Source

Small tweaks to Bridge

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
917e6dada7
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      dep/oui-blendish
  2. +2
    -2
      src/bridge.cpp

+ 1
- 1
dep/oui-blendish

@@ -1 +1 @@
Subproject commit 383f24f6ed41facf25eda0d32b0f6bc9aee96e53
Subproject commit b7066201022a757cbcbd986d8c91d565e4daef90

+ 2
- 2
src/bridge.cpp View File

@@ -168,7 +168,7 @@ struct BridgeClientConnection {
case AUDIO_PROCESS_COMMAND: { case AUDIO_PROCESS_COMMAND: {
uint32_t length = 0; uint32_t length = 0;
recv<uint32_t>(&length); recv<uint32_t>(&length);
if (length == 0) {
if (length == 0 || length > (1<<16)) {
ready = false; ready = false;
return; return;
} }
@@ -183,7 +183,7 @@ struct BridgeClientConnection {
memset(&output, 0, sizeof(output)); memset(&output, 0, sizeof(output));
processStream(input, output, frames); processStream(input, output, frames);
send(&output, length * sizeof(float)); send(&output, length * sizeof(float));
flush();
// flush();
} break; } break;


case AUDIO_ACTIVATE: { case AUDIO_ACTIVATE: {


Loading…
Cancel
Save