Package com.digitaldan.jomnilinkII.MessageTypes.properties

Examples of com.digitaldan.jomnilinkII.MessageTypes.properties.AudioSourceProperties


      while ((m = c.reqObjectProperties(Message.OBJ_TYPE_AUDIO_SOURCE,
          objnum, 1, ObjectProperties.FILTER_1_NAMED,
          ObjectProperties.FILTER_2_NONE,
          ObjectProperties.FILTER_3_NONE)).getMessageType() == Message.MESG_TYPE_OBJ_PROP) {
        // logger.info(m.toString());
        AudioSourceProperties o = ((AudioSourceProperties) m);
        objnum = ((ObjectProperties) m).getNumber();

        Integer number = new Integer(o.getNumber());
        AudioSource as = audioSourceMap.get(number);
        if (as == null) {
          as = new AudioSource(o);
          audioSourceMap.put(number, as);
        }
        audioSourceMap.put(new Integer(o.getNumber()), as);
      }

    }
View Full Code Here


    int objnum = 0;
    Message m;

    while ((m = c.reqObjectProperties(Message.OBJ_TYPE_AUDIO_SOURCE, objnum, 1, ObjectProperties.FILTER_1_NAMED,
        ObjectProperties.FILTER_2_NONE, ObjectProperties.FILTER_3_NONE)).getMessageType() == Message.MESG_TYPE_OBJ_PROP) {
      AudioSourceProperties o = ((AudioSourceProperties) m);
      objnum = o.getNumber();

      String group = addUniqueGroup(groupName + "_" + cleanString(o.getName()));

      groups.append(String.format(groupString,group,o.getName(),"OmniAudioSources"));
      //String name = group + "_" + cleanString(o.getName());

      audioSources.add(new SiteItem(group, o.getName(), o.getName()));

      items.append(String.format(itemString,"String", group + "_Text","Now Playeing: [%s]",group,"audiosource_text",objnum));
      items.append(String.format(itemString,"String", group + "_Field1","Field 1 [%s]",group,"audiosource_field1",objnum));
      items.append(String.format(itemString,"String", group + "_Field2","Field 2 [%s]",group,"audiosource_field2",objnum));
      items.append(String.format(itemString,"String", group + "_Field3","Field 3 [%s]",group,"audiosource_field3",objnum));
View Full Code Here

TOP

Related Classes of com.digitaldan.jomnilinkII.MessageTypes.properties.AudioSourceProperties

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.