@Override
    public void onAction(String name, boolean isPressed, float tpf) {
        if (!isPressed) return;

        if (name.equals("play")) {
            // re-play active sounds
            audioSource.play();
        }
    }
This test demonstrates that destroying and recreating the OpenAL Context
upon device disconnection is not an optimal solution.

As shown, AudioNode instances playing in a loop cease to play after a device disconnection
and would require explicit restarting.

This test serves solely to highlight this issue,
which should be addressed with a more robust solution within
the ALAudioRenderer class in a dedicated future pull request on Git.
jme3-examples/src/main/java/jme3test/audio/TestAudioDeviceDisconnect.java