[91] Square Tree
- Conlan Walker

- Aug 11, 2023
- 1 min read
Plainly, to make my audio mixer properly, its design necessitates two things.
The first is some form of a dynamic array system, and the second is a thread pool system.
I spent the whole week doing the former, and even then I have to test all 81 of its possible control flow combinations, not including the domain preemptive domain checks.
It's really just an array that can change in size, but the complexity comes from the prevention of memory leaks. For example, to reduce the x axis size for a 3D array, you'd need to free the memory of the y values affected, as well as the z values of the y values affected. If you don't account for all of it, you'll eventually run out of memory no matter what you do thereafter.
I wrote down and organized all 27 operations by flow priority:
And this is the actual code (that I have yet to fully test):
Next week I'll get to the thread pool part.

![[158] Most Important Brick in the Least Important Wall](https://static.wixstatic.com/media/df100d_f70be6ae4318455fbbc605cd1069c6ee~mv2.jpg/v1/fill/w_980,h_410,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/df100d_f70be6ae4318455fbbc605cd1069c6ee~mv2.jpg)
![[157] Mail Order Sacrifice](https://static.wixstatic.com/media/df100d_e284fa6c51b04524bab9d3cf9f1f6441~mv2.png/v1/fill/w_980,h_382,al_c,q_90,usm_0.66_1.00_0.01,enc_avif,quality_auto/df100d_e284fa6c51b04524bab9d3cf9f1f6441~mv2.png)
![[156] Moat of Babble](https://static.wixstatic.com/media/df100d_091e451794b14aecb494a16c15c966c3~mv2.png/v1/fill/w_980,h_705,al_c,q_90,usm_0.66_1.00_0.01,enc_avif,quality_auto/df100d_091e451794b14aecb494a16c15c966c3~mv2.png)
Comments