mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-09 01:14:28 +01:00
audio: Use a new channel: We don't guarantee the exact condition when IsPlaying returns true/false
This commit is contained in:
parent
45329ab32f
commit
2097a5d822
@ -112,7 +112,7 @@ func addNote() {
|
|||||||
vol := 1.0 / 16.0
|
vol := 1.0 / 16.0
|
||||||
square(l, vol, freq, 0.25)
|
square(l, vol, freq, 0.25)
|
||||||
square(r, vol, freq, 0.25)
|
square(r, vol, freq, 0.25)
|
||||||
audio.Queue(0, toBytes(l, r))
|
audio.Queue(-1, toBytes(l, r))
|
||||||
}
|
}
|
||||||
|
|
||||||
func update(screen *ebiten.Image) error {
|
func update(screen *ebiten.Image) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user