From 7ee81eac0fd1ecd719c906cfc8fc9a81fcf0ffbe Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 28 Dec 2009 23:19:13 -0800 Subject: Store ALC errors with the device when possible --- OpenAL32/Include/alMain.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'OpenAL32/Include/alMain.h') 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); -- cgit v1.2.3