vitreo12 / omni

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

params: review locks implementation #136

Closed vitreo12 closed 3 years ago

vitreo12 commented 3 years ago

The current implementation stores an array[2, float] for each param and a global params_lock.

In the perform block, if lock is acquired, the first entry of the param is used. Otherwise, the second (which is updated whenever a successful lock occurs).

Would an implementation with each param being an Atomic[float] be faster? This would need testing.

vitreo12 commented 3 years ago

Using a new object, Omni_Param