Skip to content

Commit

Permalink
Update RADEReceiveStep.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw authored Nov 24, 2024
1 parent 2470062 commit 4f76cc8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/pipeline/RADEReceiveStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@
//
//=========================================================================

#include <mutex>
#include <cassert>
#include "RADEReceiveStep.h"
#include "../defines.h"
#include "lpcnet.h" // from Opus source tree

extern std::mutex logMutex;

RADEReceiveStep::RADEReceiveStep(struct rade* dv, FARGANState* fargan)
: dv_(dv)
, fargan_(fargan)
Expand Down Expand Up @@ -94,10 +91,8 @@ std::shared_ptr<short> RADEReceiveStep::execute(std::shared_ptr<short> inputSamp
input_buf_cplx[i].imag = 0.0;
}

// RADE processing (input signal->features)
logMutex.lock();
// RADE processing (input signal->features).
nout = rade_rx(dv_, features_out, input_buf_cplx);
logMutex.unlock();
for (int i = 0; i < nout; i++)
{
pendingFeatures_.push_back(features_out[i]);
Expand Down

0 comments on commit 4f76cc8

Please sign in to comment.