public VbSndPlayer() { super(); // cache = new Cache<CacheKey, Clip>(new ClipCacheEntryCreator(), 10); cache.name = "SndCache"; cache.onRemove( new ParamCommand<Clip>() { public void execute(Clip clip) { clip.stop(); clip.flush(); clip.close(); } }); }