trying to convert http://stackoverflow.com/questions/10110905/simple-wave-generator-with-sdl-in-c into Go/sdl2, figuring out how to pass a function pointer via cgo