mirror of https://github.com/adamdruppe/arsd.git
ketmar
This commit is contained in:
parent
d09b2542cd
commit
5c92a33f06
|
@ -280,7 +280,7 @@ struct AudioOutput {
|
||||||
|
|
||||||
foreach(i, ref header; headers) {
|
foreach(i, ref header; headers) {
|
||||||
// since this is wave out, it promises not to write...
|
// 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.lpData = cast(void*) buffer.ptr;
|
||||||
header.dwBufferLength = buffer.length * short.sizeof;
|
header.dwBufferLength = buffer.length * short.sizeof;
|
||||||
header.dwFlags = WHDR_BEGINLOOP | WHDR_ENDLOOP;
|
header.dwFlags = WHDR_BEGINLOOP | WHDR_ENDLOOP;
|
||||||
|
|
Loading…
Reference in New Issue