[SND][SDL] Fix buffer handling.Mostly correct :)