From 2097a5d82252b6e68f4512d1c5b73f4dfdc52ed0 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 8 Feb 2016 12:26:48 +0900 Subject: [PATCH] audio: Use a new channel: We don't guarantee the exact condition when IsPlaying returns true/false --- example/audio/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/audio/main.go b/example/audio/main.go index f5c14b0e5..208fae0e7 100644 --- a/example/audio/main.go +++ b/example/audio/main.go @@ -112,7 +112,7 @@ func addNote() { vol := 1.0 / 16.0 square(l, 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 {