diff --git a/exp/audio/audio_windows.go b/exp/audio/audio_windows.go index 0229813b0..1b48b20c1 100644 --- a/exp/audio/audio_windows.go +++ b/exp/audio/audio_windows.go @@ -27,7 +27,7 @@ import "C" import ( "fmt" "io" - "runtime" + "time" "unsafe" ) @@ -119,7 +119,7 @@ func startPlaying(src io.Reader, sampleRate int) (*player, error) { // TODO: Propagate this error? panic(err) } - runtime.Gosched() + time.Sleep(1 * time.Millisecond) } // TODO: Finalize the wave handler }()