code: public void notifyResourceLoaded(int resId, boolean success) {
      boolean soundIsKnown = false;
      for (int resIdx = 0; resIdx < idToRes.size(); ++resIdx) {
        if (idToRes.valueAt(resIdx) == resId) {
          if (listener != null) {
            listener.onLoadComplete(realObject, idToRes.keyAt(resIdx), success ? 0 : 1);
          }
          soundIsKnown = true;
        }
      }
      if (!soundIsKnown) {
        throw new IllegalArgumentException("Unknown sound. You need to call load() first");
      }
    }
docs: Notify the {@link OnLoadCompleteListener}, if present, that the given resource was loaded.