diff options
author | Chris Robinson <[email protected]> | 2009-12-28 23:19:13 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-12-28 23:19:13 -0800 |
commit | 7ee81eac0fd1ecd719c906cfc8fc9a81fcf0ffbe (patch) | |
tree | a3b955467e7d67e7369d6f38b23910cffdbac367 /OpenAL32 | |
parent | c9a08fc7b235425058d3e28ddc46ae56dc726d7d (diff) |
Store ALC errors with the device when possible
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alMain.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 87eb2576..c580bf5f 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -257,6 +257,8 @@ struct ALCdevice_struct ALCchar *szDeviceName; + ALCenum LastError; + // Maximum number of sources that can be created ALuint MaxNoOfSources; // Maximum number of slots that can be created @@ -359,7 +361,7 @@ void AppendDeviceList(const ALCchar *name); void AppendAllDeviceList(const ALCchar *name); void AppendCaptureDeviceList(const ALCchar *name); -ALCvoid alcSetError(ALenum errorCode); +ALCvoid alcSetError(ALCdevice *device, ALenum errorCode); ALCvoid SuspendContext(ALCcontext *context); ALCvoid ProcessContext(ALCcontext *context); |