public void updateData(InputStream in, float duration) {
        if (id != -1 || this.in != null) {
            throw new IllegalStateException("Data already set!");
        }

        this.in = in;
        this.duration = duration;
        open = true;
    }
<code>AudioStream</code> is an implementation of AudioData that acquires the
audio from an InputStream. Audio can be streamed from network, hard drive
etc. It is assumed the data coming from the input stream is uncompressed.

@author Kirill Vainer
jme3-core/src/main/java/com/jme3/audio/AudioStream.java