From 5c92a33f0637ce99a7f3eda43e3fcadb1b5d7d78 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sat, 22 Oct 2016 08:25:38 -0400 Subject: [PATCH] ketmar --- simpleaudio.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpleaudio.d b/simpleaudio.d index de9e4f0..d5f4ca0 100644 --- a/simpleaudio.d +++ b/simpleaudio.d @@ -280,7 +280,7 @@ struct AudioOutput { foreach(i, ref header; headers) { // since this is wave out, it promises not to write... - auto buffer = buffers[i]; + auto buffer = buffers[i][]; header.lpData = cast(void*) buffer.ptr; header.dwBufferLength = buffer.length * short.sizeof; header.dwFlags = WHDR_BEGINLOOP | WHDR_ENDLOOP;