lichen-community-systems / signaletic

A music signal processing library designed for embedded environments and Web Assembly, in C
MIT License
7 stars 2 forks source link

Resolves gh-44: Refactors the Allocator API to be more amenable to custom implementations #48

Closed colinbdclark closed 2 years ago

colinbdclark commented 2 years ago

This PR implements the first approach described in #44. Allocators are now containers for two distinct structs:

  1. an impl that provides pointers to malloc, free and init
  2. a heap that provides a pointer and size to the memory used by the allocator

I've also refactored the wasm Oscillator example so that it's simpler and less brittle.