public boolean wasResourcePlayed(int resId) {
    for (Playback playback : playedSounds) {
      if (idIsForResource(playback.soundId, resId)) {
        return true;
      }
    }
    return false;
  }
public boolean wasResourcePlayed(int resId) {
    for (Playback playback : playedSounds) {
      if (idIsForResource(playback.soundId, resId)) {
        return true;
      }
    }
    return false;
  }
public boolean wasResourcePlayed ( int resId ) { for ( Playback playback : playedSounds ) { if ( idIsForResource ( playback . soundId , resId ) ) { return true ; } } return false ; }
Returns {@code true} if the given resource was played.
Returns {