private AudioSource.Status convertStatus(int openALState) {
        switch (openALState) {
            case AL_INITIAL:
            case AL_STOPPED:
                return Status.Stopped;
            case AL_PAUSED:
                return Status.Paused;
            case AL_PLAYING:
                return Status.Playing;
            default:
                throw new UnsupportedOperationException("Unrecognized OpenAL state: " + openALState);
        }
    }
Stops the AL source on the channel, detaches buffers and filters,
and clears the jME source association. Does NOT free the channel index itself.

@param index The channel index to clear.
jme3-core/src/main/java/com/jme3/audio/openal/ALAudioRenderer.java