private int substractSfWeights(Channel chan,int wtabIdx){
  int[] weigthsTab=Atrac3plusData2.atrac3p_sf_weights[wtabIdx - 1];
  for (int i=0; i < ctx.usedQuantUnits; i++) {
    chan.quSfIdx[i]-=weigthsTab[i];
    if (chan.quSfIdx[i] < 0 || chan.quSfIdx[i] > 63) {
      log.error(String.format("SF index out of range pos=%d, val=%d",i,chan.quSfIdx[i]));
      return AT3P_ERROR;
    }
  }
  return 0;
}

private int substractSfWeights ( Channel chan , int wtabIdx ) { int [ ] weigthsTab = Atrac3plusData2 . atrac3p_sf_weights [ wtabIdx - 1 ] ; for ( int i = 0 ; i < ctx . usedQuantUnits ; i ++ ) { chan . quSfIdx [ i ] -= weigthsTab [ i ] ; if ( chan . quSfIdx [ i ] < 0 || chan . quSfIdx [ i ] > 63 ) { log . error ( String . format ( "SF index out of range pos=%d, val=%d" , i , chan . quSfIdx [ i ] ) ) ; return AT3P_ERROR ; } } return 0 ; }
subtract weighting coefficients from decoded scalefactors .
