vitreo12 / omni

DSL for low-level audio programming.
https://vitreo12.github.io/omni/
MIT License
187 stars 6 forks source link

Remove all C stuff #38

Open vitreo12 opened 4 years ago

vitreo12 commented 4 years ago

And just have it written in plain nim, similarly as the buffer interface in omnimax.

Would this thugh be a bad interface for developers? They wouldn't rely on omni.h anymore, possibly

vitreo12 commented 4 years ago

Nim's function pointers: https://nim-lang.org/docs/manual.html#types-procedural-type

vitreo12 commented 4 years ago

This would mean rewriting the whole omni_alloc interface in Nim. One thing to be checked then is the validity of the nim code with the omni.h header

vitreo12 commented 4 years ago

https://forum.nim-lang.org/t/6148