summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2009-11-21 16:03:57 -0800
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:37 +0200
commit100970c8d79c3910d2ef85b430bbf1fce82a5d9c (patch)
tree6a90b478c53a20228cef0fa0b9900ad323d3a66b
parentaccc5bbd8d9f9cfaa5e6e21d762542256fa2cf39 (diff)
Removed obsolete SI-era OpenAL initialization.
-rw-r--r--src/openal.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/openal.c b/src/openal.c
index 948a5bc..70418c8 100644
--- a/src/openal.c
+++ b/src/openal.c
@@ -171,16 +171,11 @@ int PlatStartSoundSys()
{
int initSources;
int i;
- char buf[42];
- ALfloat pos[] = { 0.0, 0.0, 0.0 },
- vel[] = { 0.0, 0.0, 0.0 },
- or[] = { 0.0, 0.0, 1.0, 0.0, -1.0, 0.0 };
+ ALfloat pos[] = { 0.0, 0.0, 0.0 };
+ ALfloat vel[] = { 0.0, 0.0, 0.0 };
+ ALfloat or[] = { 0.0, 0.0, 1.0, 0.0, -1.0, 0.0 };
- int attrlist[6] = {
- ALC_FREQUENCY, 0,
- ALC_SYNC, AL_FALSE,
- 0
- };
+ int attrlist[6];
/* Set the globals. */
SoundConfig.flags = 0;
@@ -199,13 +194,7 @@ int PlatStartSoundSys()
attrlist[3] = AL_FALSE;
attrlist[4] = 0;
-#if defined(_MSC_VER)
- buf[0] = 0;
-#else
- _snprintf(buf, sizeof(buf), "'( (sampling-rate %d ))\n", AvpFrequency);
-#endif
-
- AvpSoundDevice = alcOpenDevice(buf);
+ AvpSoundDevice = alcOpenDevice(NULL);
if (AvpSoundDevice == NULL) {
return 0;
}