Skip to content

Commit

Permalink
Replace memset with std::fill_n
Browse files Browse the repository at this point in the history
  • Loading branch information
sakertooth committed Aug 12, 2024
1 parent bb21cf4 commit b7963c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/audio/AudioPortAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ int AudioPortAudio::processCallback(const float* inputBuffer, float* outputBuffe
const fpp_t frames = getNextBuffer(m_outBuf.get());
if( !frames )
{
memset(outputBuffer, 0, framesPerBuffer * channels() * sizeof(float));
std::fill_n(outputBuffer, framesPerBuffer * channels(), 0.0f);
return paComplete;
}
m_outBufSize = frames;
Expand Down

0 comments on commit b7963c7

Please sign in to comment.