veandco / go-sdl2

SDL2 binding for Go
https://godoc.org/github.com/veandco/go-sdl2
BSD 3-Clause "New" or "Revised" License
2.17k stars 219 forks source link

SDL_AudioStreamAvailable not correctly wrapped #587

Closed stringflow closed 6 months ago

stringflow commented 6 months ago

Go version: 1.21.5 Go-SDL2 version: master SDL2 version: 2.28.5 OS: windows Architecture: amd64

The SDL_AudioStreamAvailable function appears not to be wrapped correctly, giving back an error value and not the expected number of bytes available. https://wiki.libsdl.org/SDL2/SDL_AudioStreamAvailable

veeableful commented 6 months ago

Hi @stringflow, thanks for reporting this issue! I have pushed a fix to master and v0.4.37 branches. Let me know if it works for you.

stringflow commented 6 months ago

Thank you for the quick fix, it works as expected now.