Skip to content

Commit

Permalink
Reset rebuildSceneStore flag to avoid rebuilding in every audio callback
Browse files Browse the repository at this point in the history
  • Loading branch information
ial-sebastian authored and rsjbailey committed Feb 12, 2021
1 parent 48b4e66 commit 420aeed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ear-production-suite/lib/src/scene_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ SceneBackend::~SceneBackend() { metadataSender_.asyncStop(); }
communication::MessageBuffer SceneBackend::getMessage() {
std::lock_guard<std::mutex> lock(storeMutex_);
if (rebuildSceneStore_) {
rebuildSceneStore_ = false;
updateSceneStore();
}
communication::MessageBuffer buffer =
Expand Down

0 comments on commit 420aeed

Please sign in to comment.