Ejemplo n.º 1
0
 public void playResource(String resourceName) {
   InputStream in = (getClass().getClassLoader().getResourceAsStream(resourceName));
   if (in != null) {
     try {
       AudioInputStream ais = AudioSystem.getAudioInputStream(new BufferedInputStream(in));
       play(ais);
     } catch (Exception e) {
       LOG.error(e);
     }
   } else {
     LOG.debug("[playResource] can't find resource named: {0}", resourceName);
   }
 }
Ejemplo n.º 2
0
 void playingHasStarted() {
   LOG.debug("playingHasStarted");
   for (SpntAudoListener listener : listeners) {
     listener.playingHasStarted();
   }
 }