Removed obsolete SI-era OpenAL initialization.
This commit is contained in:
parent
accc5bbd8d
commit
100970c8d7
1 changed files with 5 additions and 16 deletions
21
src/openal.c
21
src/openal.c
|
@ -171,16 +171,11 @@ int PlatStartSoundSys()
|
||||||
{
|
{
|
||||||
int initSources;
|
int initSources;
|
||||||
int i;
|
int i;
|
||||||
char buf[42];
|
ALfloat pos[] = { 0.0, 0.0, 0.0 };
|
||||||
ALfloat pos[] = { 0.0, 0.0, 0.0 },
|
ALfloat vel[] = { 0.0, 0.0, 0.0 };
|
||||||
vel[] = { 0.0, 0.0, 0.0 },
|
ALfloat or[] = { 0.0, 0.0, 1.0, 0.0, -1.0, 0.0 };
|
||||||
or[] = { 0.0, 0.0, 1.0, 0.0, -1.0, 0.0 };
|
|
||||||
|
|
||||||
int attrlist[6] = {
|
int attrlist[6];
|
||||||
ALC_FREQUENCY, 0,
|
|
||||||
ALC_SYNC, AL_FALSE,
|
|
||||||
0
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Set the globals. */
|
/* Set the globals. */
|
||||||
SoundConfig.flags = 0;
|
SoundConfig.flags = 0;
|
||||||
|
@ -199,13 +194,7 @@ int PlatStartSoundSys()
|
||||||
attrlist[3] = AL_FALSE;
|
attrlist[3] = AL_FALSE;
|
||||||
attrlist[4] = 0;
|
attrlist[4] = 0;
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
AvpSoundDevice = alcOpenDevice(NULL);
|
||||||
buf[0] = 0;
|
|
||||||
#else
|
|
||||||
_snprintf(buf, sizeof(buf), "'( (sampling-rate %d ))\n", AvpFrequency);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
AvpSoundDevice = alcOpenDevice(buf);
|
|
||||||
if (AvpSoundDevice == NULL) {
|
if (AvpSoundDevice == NULL) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue