Mercurial > games > semicongine
changeset 1145:6a7f09909a37
merge
author | sam <sam@basx.dev> |
---|---|
date | Sat, 15 Jun 2024 11:57:05 +0700 |
parents | af18922b416d (current diff) d7891cf88359 (diff) |
children | ce180935334d |
files | |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/semicongine/platform/windows/audio.nim Sat Jun 15 11:55:56 2024 +0700 +++ b/semicongine/platform/windows/audio.nim Sat Jun 15 11:57:05 2024 +0700 @@ -25,7 +25,7 @@ wBitsPerSample: 16, cbSize: 0, ) - checkWinMMResult waveOutOpen(addr result.handle, WAVE_MAPPER, addr format, DWORD_PTR(0), DWORD_PTR(0), CALLBACK_NULL) + CheckWinMMResult waveOutOpen(addr result.handle, WAVE_MAPPER, addr format, DWORD_PTR(0), DWORD_PTR(0), CALLBACK_NULL) for i in 0 ..< buffers.len: result.buffers.add WAVEHDR( @@ -34,13 +34,13 @@ dwLoops: 1, ) for i in 0 ..< result.buffers.len: - checkWinMMResult waveOutPrepareHeader(result.handle, addr result.buffers[i], UINT(sizeof(WAVEHDR))) - checkWinMMResult waveOutWrite(result.handle, addr result.buffers[i], UINT(sizeof(WAVEHDR))) + CheckWinMMResult waveOutPrepareHeader(result.handle, addr result.buffers[i], UINT(sizeof(WAVEHDR))) + CheckWinMMResult waveOutWrite(result.handle, addr result.buffers[i], UINT(sizeof(WAVEHDR))) proc WriteSoundData*(soundDevice: var NativeSoundDevice, buffer: int) = while (soundDevice.buffers[buffer].dwFlags and WHDR_DONE) == 0: sleep(1) - checkWinMMResult waveOutWrite(soundDevice.handle, addr soundDevice.buffers[buffer], UINT(sizeof(WAVEHDR))) + CheckWinMMResult waveOutWrite(soundDevice.handle, addr soundDevice.buffers[buffer], UINT(sizeof(WAVEHDR))) proc CloseSoundDevice*(soundDevice: var NativeSoundDevice) = for i in 0 ..< soundDevice.buffers.len:
--- a/semicongine/platform/windows/window.nim Sat Jun 15 11:55:56 2024 +0700 +++ b/semicongine/platform/windows/window.nim Sat Jun 15 11:57:05 2024 +0700 @@ -129,7 +129,7 @@ proc Size*(window: NativeWindow): (int, int) = var rect: RECT - checkWin32Result GetWindowRect(window.hwnd, addr(rect)) + CheckWin32Result GetWindowRect(window.hwnd, addr(rect)) (int(rect.right - rect.left), int(rect.bottom - rect.top)) proc PendingEvents*(window: NativeWindow): seq[Event] =