Package com.illposed.osc

Examples of com.illposed.osc.OSCBundle


   */
  private OSCBundle convertBundle() {
    // skip the "#bundle " stuff
    streamPosition = 8;
    Date timestamp = readTimeTag();
    OSCBundle bundle = new OSCBundle(timestamp);
    OSCByteArrayToJavaConverter myConverter
        = new OSCByteArrayToJavaConverter();
    while (streamPosition < bytesLength) {
      // recursively read through the stream and convert packets you find
      int packetLength = ((Integer) readInteger()).intValue();
      byte[] packetBytes = new byte[packetLength];
      for (int i = 0; i < packetLength; i++) {
        packetBytes[i] = bytes[streamPosition++];
      }
      OSCPacket packet = myConverter.convert(packetBytes, packetLength);
      bundle.addPacket(packet);
    }
    return bundle;
  }
View Full Code Here


    long time = newDate.getTime();
    Integer delayTime = Integer.valueOf(textBox4.getText());
    time = time + delayTime.longValue();
    newDate.setTime(time);

    OSCBundle bundle = new OSCBundle(packets, newDate);

    try {
      oscPort.send(bundle);
    } catch (Exception e) {
      showError("Couldn't send");
View Full Code Here

TOP

Related Classes of com.illposed.osc.OSCBundle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.