aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 1e4bca01..d33390f7 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -754,6 +754,24 @@ ALCAPI ALCvoid ALCAPIENTRY alcGetIntegerv(ALCdevice *device,ALCenum param,ALsize
*data = ALC_FALSE;
break;
+ case ALC_MONO_SOURCES:
+ if(!device || !device->Context)
+ SetALCError(ALC_INVALID_DEVICE);
+ else if (size != 1)
+ SetALCError(ALC_INVALID_VALUE);
+ else
+ *data = device->Context->lNumMonoSources;
+ break;
+
+ case ALC_STEREO_SOURCES:
+ if(!device || !device->Context)
+ SetALCError(ALC_INVALID_DEVICE);
+ else if (size != 1)
+ SetALCError(ALC_INVALID_VALUE);
+ else
+ *data = device->Context->lNumStereoSources;
+ break;
+
default:
SetALCError(ALC_INVALID_ENUM);
break;