public void cleanup() { logger.log(Level.FINE, "Deleting objects and invalidating state"); objManager.deleteAllObjects(this); OpenCLObjectManager.getInstance().deleteAllObjects(); statistics.clearMemory(); invalidateState(); }
private void destroyOpenAL() { if (audioDisabled) { alc.destroyALC(); return; } // stop any playing channels for (int i = 0; i < chanSrcs.length; i++) { if (chanSrcs[i] != null) { clearChannel(i); } } // delete channel-based sources ib.clear(); ib.put(channels); ib.flip(); al.alDeleteSources(channels.length, ib); // delete audio buffers and filters objManager.deleteAllObjects(this); if (supportEfx) { ib.position(0).limit(1); ib.put(0, reverbFx); efx.alDeleteEffects(1, ib); // If this is not allocated, why is it deleted? // Commented out to fix native crash in OpenAL. ib.position(0).limit(1); ib.put(0, reverbFxSlot); efx.alDeleteAuxiliaryEffectSlots(1, ib); } alc.destroyALC(); }
public void cleanup() { logger.log(Level.FINE, "Deleting objects and invalidating state"); objManager.deleteAllObjects(this); statistics.clearMemory(); invalidateState(); }
public void cleanup() { logger.log(Level.FINE, "Deleting objects and invalidating state"); objManager.deleteAllObjects(this); OpenCLObjectManager.getInstance().deleteAllObjects(); statistics.clearMemory(); invalidateState(); }
private void destroyOpenAL() { if (audioDisabled) { alc.destroyALC(); return; } // stop any playing channels for (int i = 0; i < chanSrcs.length; i++) { if (chanSrcs[i] != null) { clearChannel(i); } } // delete channel-based sources ib.clear(); ib.put(channels); ib.flip(); al.alDeleteSources(channels.length, ib); // delete audio buffers and filters objManager.deleteAllObjects(this); if (supportEfx) { ib.position(0).limit(1); ib.put(0, reverbFx); efx.alDeleteEffects(1, ib); // If this is not allocated, why is it deleted? // Commented out to fix native crash in OpenAL. ib.position(0).limit(1); ib.put(0, reverbFxSlot); efx.alDeleteAuxiliaryEffectSlots(1, ib); } alc.destroyALC(); }