diff options
author | Boris I. Bendovsky <[email protected]> | 2023-12-21 21:44:29 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-12-21 19:44:29 +0000 |
commit | 32dbdd9d0443e9fdd150a2ccc6c0682f5fd8206e (patch) | |
tree | a464891f24b3aef06d0b90d35bb335086fb4c44c /al/eax | |
parent | 9ccddf8fc6ca11dbb50af0f063b05e0d419616c0 (diff) |
[EAX] Fix error handling (#953)
- Set error on EAX call failure if context is available.
- Reset error on successful retreiving the last error code.
Reference: EAX 4.0 - Programmer's Guide (pg.37)
Diffstat (limited to 'al/eax')
-rw-r--r-- | al/eax/api.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/al/eax/api.h b/al/eax/api.h index 038fdf75..0b019f11 100644 --- a/al/eax/api.h +++ b/al/eax/api.h @@ -362,6 +362,7 @@ constexpr auto EAXCONTEXT_MINMACROFXFACTOR = 0.0F; constexpr auto EAXCONTEXT_MAXMACROFXFACTOR = 1.0F; constexpr auto EAXCONTEXT_DEFAULTMACROFXFACTOR = 0.0F; +constexpr auto EAXCONTEXT_DEFAULTLASTERROR = EAX_OK; extern const GUID EAXPROPERTYID_EAX40_FXSlot0; extern const GUID EAXPROPERTYID_EAX50_FXSlot0; |