ysbaddaden / sdl.cr

SDL2 bindings for Crystal
102 stars 32 forks source link

Change AudioSpec callback not to be a pointer #48

Closed SleepingInsomniac closed 2 years ago

SleepingInsomniac commented 2 years ago

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.

ysbaddaden commented 2 years ago

Thank you!