mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
audio: time.Sleep for Windows
This commit is contained in:
parent
d397842ada
commit
1bb8a8b4bf
@ -27,7 +27,7 @@ import "C"
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"runtime"
|
"time"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ func startPlaying(src io.Reader, sampleRate int) (*player, error) {
|
|||||||
// TODO: Propagate this error?
|
// TODO: Propagate this error?
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
runtime.Gosched()
|
time.Sleep(1 * time.Millisecond)
|
||||||
}
|
}
|
||||||
// TODO: Finalize the wave handler
|
// TODO: Finalize the wave handler
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user