aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-05-08 14:03:17 +0100
committergingerBill <bill@gingerbill.org>2025-05-08 14:03:17 +0100
commit204c6f514ad174258c3fca7d18ef01bc05dde0bf (patch)
tree789aa084ab8605c0167021f5e4b13ac80764d2bd
parent0ce8373528ef732bab348b8e5b76e07d1447a8dc (diff)
Remove use of `do`
-rw-r--r--vendor/windows/XAudio2/xaudio2fx.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/windows/XAudio2/xaudio2fx.odin b/vendor/windows/XAudio2/xaudio2fx.odin
index 94793e16e..1449ed4ea 100644
--- a/vendor/windows/XAudio2/xaudio2fx.odin
+++ b/vendor/windows/XAudio2/xaudio2fx.odin
@@ -244,13 +244,13 @@ ReverbConvertI3DL2ToNative :: proc "contextless" (pI3DL2: ^REVERB_I3DL2_PARAMETE
if pI3DL2.DecayHFRatio >= 1.0 {
index := i32(-4.0 * math.log10_f32(pI3DL2.DecayHFRatio))
- if index < -8 do index = -8
+ if index < -8 { index = -8 }
pNative.LowEQGain = byte((index < 0) ? index + 8 : 8)
pNative.HighEQGain = 8
pNative.DecayTime = pI3DL2.DecayTime * pI3DL2.DecayHFRatio
} else {
index := i32(4.0 * math.log10_f32(pI3DL2.DecayHFRatio))
- if index < -8 do index = -8
+ if index < -8 { index = -8 }
pNative.LowEQGain = 8
pNative.HighEQGain = byte((index < 0) ? index + 8 : 8)
pNative.DecayTime = pI3DL2.DecayTime