libspatialaudio
libspatialaudio copied to clipboard
EXC_BAD_ACCESS AmbisonicEncoder.cpp Line 50

When I try to run the example code featured in the ReadMe, the program exits with exit code 11. After debugging for a bit I was able to determine the issue is coming from this line:
pfDst->m_ppfChannels[niChannel][niSample] = pfSrc[niSample] * m_pfCoeff[niChannel];
which is located in the AmbisonicEncoder.cpp file.
I have attached a screenshot showing the error.
Dev Environment:
macOS Mojave C++11
Please share a full stacktrace.