Package org.openhab.binding.pulseaudio.internal.items

Examples of org.openhab.binding.pulseaudio.internal.items.Sink


            // no action here
            break;
          case SLAVE_SINKS:
            if (audioItem instanceof Sink && ((Sink)audioItem).isCombinedSink()) {
              // change the slave sinks of the given combined sink to the new value
              Sink mainSink = (Sink)audioItem;
              ArrayList<Sink> slaveSinks = new ArrayList<Sink>();
              for (String slaveSinkName : StringUtils.split(command.toString(),",")) {
                Sink slaveSink = client.getSink(slaveSinkName);
                if (slaveSink!=null) {
                  slaveSinks.add(slaveSink);
                }
              }
              logger.debug(slaveSinks.size()+" slave sinks");
View Full Code Here


          } else if (itemType.isAssignableFrom(StringItem.class)) {
            if (commandType == null) {
              value = new StringType(audioItem.toString());
            }
            else if (audioItem instanceof Sink) {
              Sink sink = (Sink)audioItem;
              switch (commandType) {
              case SLAVE_SINKS:
                if (sink.isCombinedSink()) {
                  value = new StringType(StringUtils.join(sink.getCombinedSinkNames(),","));
                }
                break;
              }
            }
          } else {
View Full Code Here

TOP

Related Classes of org.openhab.binding.pulseaudio.internal.items.Sink

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.