engine::findZone allocates
Closed this issue · 1 comments
baconpaul commented
allocates to populate the vector and happens on the audio thread
which is a bummer
lets have it try to not do that through restructuring
baconpaul commented
The solution here is
- engineVoiceResponder gets a
std::array<pathToZone_t, maxVoices>
- findZone signature changes to return
size_t
and take& std::array<ptz, max>
- find zone re-populates the array starting at 0 and returns size
- voice responder does an int loop