Rev | Line | |
---|
[17] | 1 | /* -*- mode: C; tab-width:8; c-basic-offset:8 -*- |
---|
| 2 | * vi:set ts=8: |
---|
| 3 | * |
---|
| 4 | * al_error.h |
---|
| 5 | * |
---|
| 6 | * openal error reporting. |
---|
| 7 | */ |
---|
| 8 | #ifndef _AL_ERROR_H_ |
---|
| 9 | #define _AL_ERROR_H_ |
---|
| 10 | |
---|
| 11 | #include <AL/al.h> |
---|
| 12 | #include "alc/alc_context.h" |
---|
| 13 | |
---|
| 14 | /* |
---|
| 15 | * Sets the context specific error for the context specified by cid to the |
---|
| 16 | * value param. |
---|
| 17 | */ |
---|
| 18 | void _alSetError( ALuint cid, ALenum param ); |
---|
| 19 | |
---|
| 20 | /* |
---|
| 21 | * _alShouldBombOnError_LOKI is a variable that, when set to AL_TRUE, will |
---|
| 22 | * cause alSetError to abort when setting an error. Default is AL_FALSE. |
---|
| 23 | */ |
---|
| 24 | extern ALboolean _alShouldBombOnError_LOKI; |
---|
| 25 | |
---|
| 26 | /* Macros to handle default context */ |
---|
| 27 | |
---|
| 28 | #define _alDCSetError(p) _alSetError(_alcCCId, p) |
---|
| 29 | |
---|
| 30 | #endif /* _AL_ERROR_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.