public void dispose() { if (sourceId != 0) { AL10.alDeleteSources(sourceId); } } }
@Override public void alDeleteSources(final int numSources, final IntBuffer sources) { if (sources.position() != 0) throw new AssertionError(); if (sources.limit() != numSources) throw new AssertionError(); AL10.alDeleteSources(sources); }
public void alDeleteSources(int numSources, IntBuffer sources) { if (sources.position() != 0) throw new AssertionError(); if (sources.limit() != numSources) throw new AssertionError(); AL10.alDeleteSources(sources); }
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(); AL.destroy(); while (AL.isCreated()) { try { Thread.sleep(10); } catch (InterruptedException e) { } } }
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(); AL.destroy(); while (AL.isCreated()) { try { Thread.sleep(10); } catch (InterruptedException e) { } } }
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); }
@Override public void alDeleteSources(int... sources) { for (int source : sources) AL10.alDeleteSources(source); }
public void cleanup() { stop(); alDeleteSources(sourceId); } }
public void cleanup() { stop(); alDeleteSources(sourceId); } }
public void cleanup() { stop(); alDeleteSources(sourceId); } }
public void cleanup() { stop(); alDeleteSources(sourceId); } }
public void cleanup() { stop(); alDeleteSources(sourceId); } }
public void cleanup() { stop(); alDeleteSources(sourceId); } }
public void alDeleteSources(int numSources, IntBuffer sources) { if (sources.position() != 0) throw new AssertionError(); if (sources.limit() != numSources) throw new AssertionError(); AL10.alDeleteSources(sources); }
public void cleanup() { stop(); alDeleteSources(sourceId); } }
public void cleanup() { stop(); alDeleteSources(sourceId); } }
public void cleanup() { stop(); alDeleteSources(sourceId); } }
public void cleanup() { stop(); alDeleteSources(sourceId); } }
/** * Deletes this source, rendering it unusable. */ public void delete () { IntBuffer idbuf = BufferUtils.createIntBuffer(1); idbuf.put(_id).rewind(); AL10.alDeleteSources(idbuf); _id = 0; _queue.clear(); }