@Override public void destroyALC() { if (context != 0) { ALC10.alcDestroyContext(context); context = 0; } if (device != 0) { ALC10.alcCloseDevice(device); device = 0; } }
public void dispose () { if (noDevice) return; for (int i = 0, n = allSources.size; i < n; i++) { int sourceID = allSources.get(i); int state = alGetSourcei(sourceID, AL_SOURCE_STATE); if (state != AL_STOPPED) alSourceStop(sourceID); alDeleteSources(sourceID); } sourceToSoundId.clear(); soundIdToSource.clear(); alcDestroyContext(context); alcCloseDevice(device); }
public void dispose () { if (noDevice) return; for (int i = 0, n = allSources.size; i < n; i++) { int sourceID = allSources.get(i); int state = alGetSourcei(sourceID, AL_SOURCE_STATE); if (state != AL_STOPPED) alSourceStop(sourceID); alDeleteSources(sourceID); } sourceToSoundId.clear(); soundIdToSource.clear(); alcDestroyContext(context); alcCloseDevice(device); }
context = alcCreateContext(device, (IntBuffer)null); if (context == 0L) { alcCloseDevice(device); noDevice = true; return;
context = alcCreateContext(device, (IntBuffer)null); if (context == 0L) { alcCloseDevice(device); noDevice = true; return;
private void cleanUp() { alcCloseDevice(device); alcDestroyContext(context); } }
public void destroyALC() { if (context != 0) { ALC10.alcDestroyContext(context); context = 0; } if (device != 0) { ALC10.alcCloseDevice(device); device = 0; } }
public void cleanup() { for (SoundSource soundSource : soundSourceMap.values()) { soundSource.cleanup(); } soundSourceMap.clear(); for (SoundBuffer soundBuffer : soundBufferList) { soundBuffer.cleanup(); } soundBufferList.clear(); if (context != NULL) { alcDestroyContext(context); } if (device != NULL) { alcCloseDevice(device); } } }
public void cleanup() { for (SoundSource soundSource : soundSourceMap.values()) { soundSource.cleanup(); } soundSourceMap.clear(); for (SoundBuffer soundBuffer : soundBufferList) { soundBuffer.cleanup(); } soundBufferList.clear(); if (context != NULL) { alcDestroyContext(context); } if (device != NULL) { alcCloseDevice(device); } } }
public void cleanup() { for (SoundSource soundSource : soundSourceMap.values()) { soundSource.cleanup(); } soundSourceMap.clear(); for (SoundBuffer soundBuffer : soundBufferList) { soundBuffer.cleanup(); } soundBufferList.clear(); if (context != NULL) { alcDestroyContext(context); } if (device != NULL) { alcCloseDevice(device); } } }
public void cleanup() { for (SoundSource soundSource : soundSourceMap.values()) { soundSource.cleanup(); } soundSourceMap.clear(); for (SoundBuffer soundBuffer : soundBufferList) { soundBuffer.cleanup(); } soundBufferList.clear(); if (context != NULL) { alcDestroyContext(context); } if (device != NULL) { alcCloseDevice(device); } } }
public void cleanup() { for (SoundSource soundSource : soundSourceMap.values()) { soundSource.cleanup(); } soundSourceMap.clear(); for (SoundBuffer soundBuffer : soundBufferList) { soundBuffer.cleanup(); } soundBufferList.clear(); if (context != NULL) { alcDestroyContext(context); } if (device != NULL) { alcCloseDevice(device); } } }
public void cleanup() { for (SoundSource soundSource : soundSourceMap.values()) { soundSource.cleanup(); } soundSourceMap.clear(); for (SoundBuffer soundBuffer : soundBufferList) { soundBuffer.cleanup(); } soundBufferList.clear(); if (context != NULL) { alcDestroyContext(context); } if (device != NULL) { alcCloseDevice(device); } } }
public void cleanup() { for (SoundSource soundSource : soundSourceMap.values()) { soundSource.cleanup(); } soundSourceMap.clear(); for (SoundBuffer soundBuffer : soundBufferList) { soundBuffer.cleanup(); } soundBufferList.clear(); if (context != NULL) { alcDestroyContext(context); } if (device != NULL) { alcCloseDevice(device); } } }
public void cleanup() { for (SoundSource soundSource : soundSourceMap.values()) { soundSource.cleanup(); } soundSourceMap.clear(); for (SoundBuffer soundBuffer : soundBufferList) { soundBuffer.cleanup(); } soundBufferList.clear(); if (context != NULL) { alcDestroyContext(context); } if (device != NULL) { alcCloseDevice(device); } } }
public void cleanup() { for (SoundSource soundSource : soundSourceMap.values()) { soundSource.cleanup(); } soundSourceMap.clear(); for (SoundBuffer soundBuffer : soundBufferList) { soundBuffer.cleanup(); } soundBufferList.clear(); if (context != NULL) { alcDestroyContext(context); } if (device != NULL) { alcCloseDevice(device); } } }
public void cleanup() { for (SoundSource soundSource : soundSourceMap.values()) { soundSource.cleanup(); } soundSourceMap.clear(); for (SoundBuffer soundBuffer : soundBufferList) { soundBuffer.cleanup(); } soundBufferList.clear(); if (context != NULL) { alcDestroyContext(context); } if (device != NULL) { alcCloseDevice(device); } } }
public void dispose () { if (noDevice) return; for (int i = 0, n = allSources.size; i < n; i++) { int sourceID = allSources.get(i); int state = alGetSourcei(sourceID, AL_SOURCE_STATE); if (state != AL_STOPPED) alSourceStop(sourceID); alDeleteSources(sourceID); } sourceToSoundId.clear(); soundIdToSource.clear(); alcDestroyContext(context); alcCloseDevice(device); }
context = alcCreateContext(device, (IntBuffer)null); if (context == 0L) { alcCloseDevice(device); noDevice = true; return;