Audio WAV plays only 3 times


#1

Im working in a game developed in Go using this binding : https://github.com/veandco/go-sdl2
The problem I am facing is that when I try to play a WAV file, it plays perfectly, but only 3 times. ( Yes, specifically 3 times).

I know that its not a bug in my code since from the 4th time onwards, it actually “plays” something, but it sounds like static from an old radio.

And this is my project too but specifically my short audio package : https://github.com/Matias-Barrios/SDL_Universe/blob/master/SDL/audio.go

Can someone point out if I am doing something wrong with this?


#2

Well. For anyone interested, this was solved as it was a bug in the binding I was using. Not in SDL itself