Closed dshil closed 10 months ago
Thanks for PR.
On one hand, it's nice that ChannelMapper::setup_mapmatrix() was split. On the other hand, the new approach looks over-complicated. IMHO there is now too much entities to keep track of when reading the code, and they're not just data but each one is new abstraction with its own API.
I'd prefer to keep it simpler: keep all state inside ChannelMapper, but split setup_mapmatrix() into multiple functions. I incorporated some of you refactorings (notably for building index maps) and implemented this approach here: https://github.com/roc-streaming/roc-toolkit/pull/626
Could you take a look?
New version is better! I've pushed follow-up refactoring to #626 (I dropped my old version, but have redone some renames I did there).
gh-86
Based on patch suggested in https://github.com/roc-streaming/roc-toolkit/pull/607.