mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
audio: time.Sleep for Windows
This commit is contained in:
parent
d397842ada
commit
1bb8a8b4bf
@ -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
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user