@Override
    public Class<? extends AssetCache> getCacheType() {
        if ((stream && streamCache) || !stream) {
            // Use non-cloning cache
            return WeakRefAssetCache.class;
        } else {
            // Disable caching for streaming audio
            return null;
        }
    }
Specifies if the stream cache is used.

When enabled, the audio stream will
be read entirely but not decoded, allowing features such as
seeking, looping and determining duration.

@return true if stream cache is in use, otherwise false
jme3-core/src/main/java/com/jme3/audio/AudioKey.java