Bläddra i källkod

remove OSS specific bits from OpenAL initialization, use default driver

Carsten Teibes 10 år sedan
förälder
incheckning
9e39e9abd9
1 ändrade filer med 1 tillägg och 10 borttagningar
  1. 1
    10
      src/SoundAL.cpp

+ 1
- 10
src/SoundAL.cpp Visa fil

@@ -40,16 +40,7 @@ int SoundAL::initialize() {
40 40
     if (!mEnabled)
41 41
         return 0;
42 42
 
43
-#ifndef __APPLE__
44
-    int fd = open("/dev/dsp", O_RDWR);
45
-    if (fd < 0) {
46
-        printf("Could not initialize OpenAL (/dev/dsp)\n");
47
-        return -1;
48
-    }
49
-    close(fd);
50
-#endif
51
-
52
-    ALCdevice *Device = alcOpenDevice("OSS");
43
+    ALCdevice *Device = alcOpenDevice(NULL);
53 44
     ALCcontext *Context = alcCreateContext(Device, NULL);
54 45
     alcMakeContextCurrent(Context);
55 46
 

Laddar…
Avbryt
Spara