123124125126127128129130131132133
// tries to stop a sound, will probably only work for streaming music though void stop(MonkeySound sound) { AudioNode toStop = soundMap.get(sound); toStop.stop(); } public void cleanup() { unloadAllMusic(); soundMap.clear();