Mercurial > games > semicongine
comparison semiconginev2/platform/windows/audio.nim @ 1224:a3fa15c25026 compiletime-tests
did: cleanup, add audio, change platform-dependent structure
author | sam <sam@basx.dev> |
---|---|
date | Wed, 17 Jul 2024 22:02:11 +0700 |
parents | 56781cc0fc7c |
children |
comparison
equal
deleted
inserted
replaced
1223:55896320c8bf | 1224:a3fa15c25026 |
---|---|
1 include ./thirdparty/winim/winim/inc/mmsystem | |
2 | |
1 template CheckWinMMResult*(call: untyped) = | 3 template CheckWinMMResult*(call: untyped) = |
2 let value = call | 4 let value = call |
3 if value < 0: | 5 if value < 0: |
4 raise newException(Exception, "Windows multimedia error: " & astToStr(call) & | 6 raise newException(Exception, "Windows multimedia error: " & astToStr(call) & |
5 " returned " & $value) | 7 " returned " & $value) |