Possible ideas to extend this class:
213214215216217218219220221222223
*/ public InputStream play(Sound sound, SoundFilter filter, boolean loop) { InputStream is; if (sound != null) { if (loop) { is = new LoopingByteInputStream(sound.getSamples()); } else { is = new ByteArrayInputStream(sound.getSamples()); } return play(is, filter);