Skip to content

Commit

Permalink
remove mutex from dsp
Browse files Browse the repository at this point in the history
  • Loading branch information
martonp96 committed Oct 3, 2023
1 parent 502ae6d commit 959ca61
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/CSoundInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,6 @@ void CSoundInput::Normalize(void* buffer, DWORD length)
void CSoundInput::NormalizeDSP(HDSP handle, DWORD channel, void* buffer, DWORD length, void* user)
{
const auto self = static_cast<CSoundInput*>(user);
std::unique_lock lock{ self->inputMutex };

if (self->IsNormalizationEnabled())
{
for (int i = 0; i < length; i += (FRAME_SIZE_SAMPLES * sizeof(short)))
Expand All @@ -313,8 +311,6 @@ void CSoundInput::NormalizeDSP(HDSP handle, DWORD channel, void* buffer, DWORD l
void CSoundInput::NoiseDSP(HDSP handle, DWORD channel, void* buffer, DWORD length, void* user)
{
const auto self = static_cast<CSoundInput*>(user);
std::unique_lock lock{ self->inputMutex };

if(self->IsNoiseSuppressionEnabled())
{
for (int i = 0; i < length; i += (FRAME_SIZE_SAMPLES * sizeof(short)))
Expand Down

0 comments on commit 959ca61

Please sign in to comment.