From 7ee81eac0fd1ecd719c906cfc8fc9a81fcf0ffbe Mon Sep 17 00:00:00 2001 From: Chris Robinson <chris.kcat@gmail.com> Date: Mon, 28 Dec 2009 23:19:13 -0800 Subject: Store ALC errors with the device when possible --- Alc/alsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/alsa.c') diff --git a/Alc/alsa.c b/Alc/alsa.c index 460a1cd9..cc7bef27 100644 --- a/Alc/alsa.c +++ b/Alc/alsa.c @@ -915,7 +915,7 @@ static void alsa_capture_samples(ALCdevice *pDevice, ALCvoid *pBuffer, ALCuint l if(lSamples <= (ALCuint)RingBufferSize(data->ring)) ReadRingBuffer(data->ring, pBuffer, lSamples); else - alcSetError(ALC_INVALID_VALUE); + alcSetError(pDevice, ALC_INVALID_VALUE); } static ALCuint alsa_available_samples(ALCdevice *pDevice) -- cgit v1.2.3