Beispiel #1
0
  private void inscriptXMLstream(Stream inscriptible, Node specs) throws XPathExpressionException {
    String _PATH = this.xp.evaluate("./" + PATH, specs);
    String _VOLUME = this.xp.evaluate("./" + VOLUME, specs);
    String _PITCH = this.xp.evaluate("./" + PITCH, specs);
    String _FADEINTIME = this.xp.evaluate("./" + FADEINTIME, specs);
    String _FADEOUTTIME = this.xp.evaluate("./" + FADEOUTTIME, specs);
    String _DELAYBEFOREFADEIN = this.xp.evaluate("./" + DELAYBEFOREFADEIN, specs);
    String _DELAYBEFOREFADEOUT = this.xp.evaluate("./" + DELAYBEFOREFADEOUT, specs);
    String _ISLOOPING = this.xp.evaluate("./" + ISLOOPING, specs);
    String _ISUSINGPAUSE = this.xp.evaluate("./" + ISUSINGPAUSE, specs);

    if (_PATH != null) {
      inscriptible.path = _PATH;
    }

    if (_VOLUME != null) {
      inscriptible.volume = Float.parseFloat(_VOLUME);
    }

    if (_PITCH != null) {
      inscriptible.pitch = Float.parseFloat(_PITCH);
    }

    if (_FADEINTIME != null) {
      inscriptible.fadeInTime = Float.parseFloat(_FADEINTIME);
    }

    if (_FADEOUTTIME != null) {
      inscriptible.fadeOutTime = Float.parseFloat(_FADEOUTTIME);
    }

    if (_DELAYBEFOREFADEIN != null) {
      inscriptible.delayBeforeFadeIn = Float.parseFloat(_DELAYBEFOREFADEIN);
    }

    if (_DELAYBEFOREFADEOUT != null) {
      inscriptible.delayBeforeFadeOut = Float.parseFloat(_DELAYBEFOREFADEOUT);
    }

    if (_ISLOOPING != null) {
      inscriptible.isLooping = toInt(_ISLOOPING) == 1;
    }

    if (_ISUSINGPAUSE != null) {
      inscriptible.isUsingPause = toInt(_ISUSINGPAUSE) == 1;
    }
  }