Skip to content

Commit

Permalink
fix formatted buffer zero padding using zero fill instead of clear
Browse files Browse the repository at this point in the history
  • Loading branch information
lshoek committed Sep 16, 2024
1 parent 9673a60 commit a50d330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system_modules/napfft/src/fftbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ namespace nap
else if (mSampleBufferB.size() > data_size)
{
// Zero-padding
mSampleBufferFormatted.clear();
std::fill(mSampleBufferFormatted.begin(), mSampleBufferFormatted.end(), 0.0f);
std::memcpy(half_ptr, mSampleBufferB.data(), data_bytes);
}
else
Expand Down

4 comments on commit a50d330

@cklosters
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Public / Package NAP Raspberry Pi Build 1744 is now running

@cklosters
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Public / Package NAP Win64 Build 269 is now running

@cklosters
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Public / Package NAP Win64 Build 269 outcome was SUCCESS
Summary: Running Build time: 00:17:24

@cklosters
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Public / Package NAP Raspberry Pi Build 1744 outcome was SUCCESS
Summary: Running Build time: 01:51:29

Please sign in to comment.