private boolean isDeviceDisconnected() {
        if (audioDisabled || !supportDisconnect) {
            return false;
        }

        ib.clear().limit(1);
        alc.alcGetInteger(ALC.ALC_CONNECTED, ib, 1);
        // Returns 1 if connected, 0 if disconnected.
        return ib.get(0) == 0;
    }
Checks if the audio device has been disconnected.
Requires ALC_EXT_disconnect extension.
@return True if disconnected, false otherwise or if not supported.
jme3-core/src/main/java/com/jme3/audio/openal/ALAudioRenderer.java