aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-01-11 17:19:08 -0800
committerChris Robinson <[email protected]>2008-01-11 17:19:08 -0800
commit3bbbf8a025c66367fdb19dce70c9a2b6505725f4 (patch)
tree4a1e7d433689989de8cd314b8796466a2f029192 /Alc/ALc.c
parent312108a0d32190289a1e59a3797b7075d6d745d3 (diff)
parent978764cb6b84d78187badf9d8d5b7177d047654f (diff)
Merge branch 'master' into efx-experiment
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 19144883..747a2456 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -62,6 +62,8 @@ struct {
{ "winmm", alcWinMMInit, EmptyFuncs },
#endif
+ { "wave", alc_wave_init, EmptyFuncs },
+
{ NULL, NULL, EmptyFuncs }
};
#undef EmptyFuncs
@@ -742,7 +744,7 @@ ALCAPI ALCvoid ALCAPIENTRY alcGetIntegerv(ALCdevice *device,ALCenum param,ALsize
data[i++] = device->Frequency;
data[i++] = ALC_REFRESH;
- data[i++] = device->UpdateFreq;
+ data[i++] = device->Frequency / device->UpdateFreq;
data[i++] = ALC_SYNC;
data[i++] = ALC_FALSE;
@@ -780,7 +782,7 @@ ALCAPI ALCvoid ALCAPIENTRY alcGetIntegerv(ALCdevice *device,ALCenum param,ALsize
else if(!size)
SetALCError(ALC_INVALID_VALUE);
else
- *data = device->UpdateFreq;
+ *data = device->Frequency / device->UpdateFreq;
break;
case ALC_SYNC:
@@ -792,6 +794,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;