You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A number of bugs exist in the sample code which cause runtime errors (segfault on my system).
The first is that CBFormat myFormat must be configured. I used myBFormat.Configure(1, true, 512).
Next is an error in the comments. The ambisonic encoder is also 1st order, not third order.
The second error is in the the configuration of CAmbisonicDecoder myDecoder. myDecoder.Configure(1, true, kAmblib_50, 5) is missing an argument for nBlockSize. The function signature is: bool Configure(unsigned int nOrder, bool b3D, unsigned int nBlockSize, int nSpeakerSetUp, unsigned int nSpeakers = 0).
I would also recommend changing enumerated types into enum classes, providing type safety, rather than using ints.
The text was updated successfully, but these errors were encountered:
A number of bugs exist in the sample code which cause runtime errors (segfault on my system).
The first is that
CBFormat myFormat
must be configured. I usedmyBFormat.Configure(1, true, 512)
.Next is an error in the comments. The ambisonic encoder is also 1st order, not third order.
The second error is in the the configuration of
CAmbisonicDecoder myDecoder
.myDecoder.Configure(1, true, kAmblib_50, 5)
is missing an argument fornBlockSize
. The function signature is:bool Configure(unsigned int nOrder, bool b3D, unsigned int nBlockSize, int nSpeakerSetUp, unsigned int nSpeakers = 0)
.I would also recommend changing enumerated types into enum classes, providing type safety, rather than using ints.
The text was updated successfully, but these errors were encountered: