Example #1
0
  @Override
  public boolean drop(String id) {
    Audio audio = idToAudioMap.remove(id);

    if (audio != null) {
      audio.destroy();
      Log.println(LOW_DEBUG, id + " Audio Destroyed Successfully");
      return true;
    }
    return false;
  }
Example #2
0
 @Override
 public void dropAll() {
   for (Audio audio : idToAudioMap.values()) {
     audio.destroy();
   }
 }