Possible ideas to extend this class:
233234235236237238239240241242243
boolean loop) { InputStream is; if (sound != null) { if (loop) { is = new LoopingByteInputStream( sound.getSamples()); } else { is = new ByteArrayInputStream(sound.getSamples()); }