OSDN Git Service

[fixed] missing AL.destroy() in OpenALAudio.dispose()
authorbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Tue, 18 Jan 2011 12:43:25 +0000 (12:43 +0000)
committerbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Tue, 18 Jan 2011 12:43:25 +0000 (12:43 +0000)
backends/gdx-openal/src/com/badlogic/gdx/backends/openal/OpenALAudio.java

index 462bcce..09cfbb2 100644 (file)
@@ -110,6 +110,8 @@ public class OpenALAudio implements Audio {
                        if (state != AL_STOPPED) alSourceStop(streamID);\r
                        alDeleteSources(streamID);\r
                }\r
+               \r
+               AL.destroy();\r
        }\r
 \r
        public AudioDevice newAudioDevice (boolean isMono) {\r
@@ -118,5 +120,5 @@ public class OpenALAudio implements Audio {
 \r
        public AudioRecorder newAudioRecoder (int samplingRate, boolean isMono) {\r
                return new JavaSoundAudioRecorder(samplingRate, isMono);\r
-       }\r
+       }       \r
 }\r