Looks like the callback in the AudioSpec struct should not be a pointer. I get an infinite recursion crash when trying to use it, but when it's not a pointer it works as expected.
I also ran crystal tool format on this file to convert some of the tabs to spaces, etc. but the actual change is just on line 51.
Looks like the callback in the
AudioSpec
struct should not be a pointer. I get an infinite recursion crash when trying to use it, but when it's not a pointer it works as expected.I also ran crystal tool format on this file to convert some of the tabs to spaces, etc. but the actual change is just on line 51.