Package artnet4j.packets

Examples of artnet4j.packets.ArtDmxPacket


  @Override
  public void sendDmx(byte[] buffer) throws Exception {

    if (!isConnectionClosed) {

      ArtDmxPacket dmx = new ArtDmxPacket();

      // Default to universe 0. May need to be changed later to support
      // multiple universes.
      dmx.setUniverse(0, 0);
      dmx.setSequenceID(sequenceID % 255);
      dmx.setDMX(buffer, buffer.length);

      if (!receiverNodes.isEmpty()) {

        for (ArtNetNode receiver : receiverNodes) {
          logger.trace("Sending " + buffer.length + " Bytes to "
View Full Code Here


   *
   * @param artnetReceiver
   * @param frameBuf
   */
  protected void sendBufferToReceiver(int universeId, byte[] buffer) {
    ArtDmxPacket dmx = new ArtDmxPacket();
   
    //parameter: int subnetID, int universeID
    //TODO: make subnet Id configurable?
    dmx.setUniverse(0, universeId);
    dmx.setSequenceID(sequenceID % 255);
   
    //byte[] dmxData, int numChannels
    dmx.setDMX(buffer, buffer.length);
    this.artnet.unicastPacket(dmx, this.targetAdress);   
    this.sequenceID++;
  }
View Full Code Here

TOP

Related Classes of artnet4j.packets.ArtDmxPacket

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.