Skip to content

Commit e655980

Browse files
committed
Fix DirectX playback
1 parent d4283bb commit e655980

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/audio/directx/audiodrv.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ bool Audio_DirectX::write (uint_least32_t size)
205205
setError("Device not open.");
206206
return false;
207207
}
208+
209+
size *= 2;
210+
208211
// Unlock the current buffer for playing
209212
lpDsb->Unlock (lpvData, size, NULL, 0);
210213

0 commit comments

Comments
 (0)