From 47e093c030f26547eefc32b32dccbeec7df1e634 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 27 Jun 2018 18:54:45 -0400 Subject: [PATCH] 64 bit windows fixes --- simpleaudio.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpleaudio.d b/simpleaudio.d index ace1cbd..43f6b23 100644 --- a/simpleaudio.d +++ b/simpleaudio.d @@ -640,7 +640,7 @@ struct AudioOutput { // since this is wave out, it promises not to write... auto buffer = buffers[i][]; header.lpData = cast(void*) buffer.ptr; - header.dwBufferLength = buffer.length * short.sizeof; + header.dwBufferLength = cast(int) buffer.length * cast(int) short.sizeof; header.dwFlags = WHDR_BEGINLOOP | WHDR_ENDLOOP; header.dwLoops = 1;