Go, OpenAL, DirectSound and Heisenbug

I just learnt Go 1.3.1 came out, so I tried updating... and the problem disappeared. (argh!)

I guess it was a compiler bug then. Anyway, thanks to everyone who tried to help, I really appreciate it.


It might be related to Thread Switching:

The solution could be to use LockOSThread

http://golang.org/pkg/runtime/#LockOSThread

You can read more about it here: https://code.google.com/p/go-wiki/wiki/LockOSThread

Also your Init function has capital I if you are trying to initialize the library it has to be lower case.