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); } }
void playingHasStarted() { LOG.debug("playingHasStarted"); for (SpntAudoListener listener : listeners) { listener.playingHasStarted(); } }