From 917e6dada7bedc211c1a62f05da34cc1672a2b6b Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 18 Mar 2018 08:34:00 -0400 Subject: [PATCH] Small tweaks to Bridge --- dep/oui-blendish | 2 +- src/bridge.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dep/oui-blendish b/dep/oui-blendish index 383f24f6..b7066201 160000 --- a/dep/oui-blendish +++ b/dep/oui-blendish @@ -1 +1 @@ -Subproject commit 383f24f6ed41facf25eda0d32b0f6bc9aee96e53 +Subproject commit b7066201022a757cbcbd986d8c91d565e4daef90 diff --git a/src/bridge.cpp b/src/bridge.cpp index d59e72a8..5629a5ec 100644 --- a/src/bridge.cpp +++ b/src/bridge.cpp @@ -168,7 +168,7 @@ struct BridgeClientConnection { case AUDIO_PROCESS_COMMAND: { uint32_t length = 0; recv(&length); - if (length == 0) { + if (length == 0 || length > (1<<16)) { ready = false; return; } @@ -183,7 +183,7 @@ struct BridgeClientConnection { memset(&output, 0, sizeof(output)); processStream(input, output, frames); send(&output, length * sizeof(float)); - flush(); + // flush(); } break; case AUDIO_ACTIVATE: {