Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #71 from microsoft/user/ashtat/FixSpatializerBuzz
Browse files Browse the repository at this point in the history
Explicitly clear output buffer on process (breaking change from latest HrtfDsp drop).
  • Loading branch information
ashtat committed Mar 30, 2022
2 parents db887c4 + 5be0d41 commit 7db0e97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Spatializer/HrtfWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ void HrtfWrapper::ReleaseSource(uint32_t sourceIndex)

uint32_t HrtfWrapper::ProcessHrtfs(float* outputBuffer, uint32_t numSamples, uint32_t numChannels) noexcept
{
// Explicitly clear the output buffer
memset(outputBuffer, 0, sizeof(float) * numSamples * numChannels);
auto retVal = HrtfEngineProcess(
m_FlexEngine.Get(), m_HrtfInputBuffers, c_HrtfMaxSources, outputBuffer, numSamples * numChannels);

Expand Down

0 comments on commit 7db0e97

Please sign in to comment.