Examples of AudioSource


Examples of org.openhab.binding.omnilink.internal.model.AudioSource

              break;
            case AUDIOSOURCE_TEXT:
            case AUDIOSOURCE_TEXT_FIELD1:
            case AUDIOSOURCE_TEXT_FIELD2:
            case AUDIOSOURCE_TEXT_FIELD3: {
              AudioSource as = audioSourceMap.get(number);
              if (as != null) {
                config.setDevice(as);
                as.updateItem(provider.getItem(itemName),
                    config, eventPublisher);
              }
            }
              break;
            case AREA_ENTRY_TIMER:
View Full Code Here

Examples of org.openhab.binding.omnilink.internal.model.AudioSource

        // 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

Examples of org.openhab.binding.omnilink.internal.model.AudioSource

          AudioSourceStatus a = (AudioSourceStatus) m;
          text.add(a.getSourceData());
          pos = a.getPosition();
        }

        AudioSource as = audioSourceMap.get(source);

        String text2[] = as.getAudioText();

        if (text.size() == text2.length) {
          for (int i = 0; i < text.size(); i++) {
            if (!text2[i].equals(text.get(i))) {
              updated = true;
            }
          }
        } else {
          updated = true;
        }

        if (updated) {
          as.setAudioText(text.toArray(new String[0]));
          updateAudioZoneText(as);
        }
      }
    }
View Full Code Here

Examples of toxi.audio.AudioSource

        l.setGain(1);
        AudioBuffer b = audioUtil.loadBuffer("test/phone_ulaw.wav");
        int delay = b.getSampleSize() * 1000 / b.getFrequency();
        System.out.println(b + " length=" + delay);
        if (b.convertUlawToPCM(false)) {
            AudioSource src = audioUtil.generateSource();
            src.setBuffer(b);
            src.play();
        } else {
            System.out.println("couldn't convert buffer data");
        }
        try {
            Thread.sleep(delay);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.