private int addWordlenWeights(Channel chan,int weightIdx){
  int[] weigthsTab=atrac3p_wl_weights[chan.chNum * 3 + weightIdx - 1];
  for (int i=0; i < ctx.numQuantUnits; i++) {
    chan.quWordlen[i]+=weigthsTab[i];
    if (chan.quWordlen[i] < 0 || chan.quWordlen[i] > 7) {
      log.error(String.format("WL index out of range pos=%d, val=%d",i,chan.quWordlen[i]));
      return AT3P_ERROR;
    }
  }
  return 0;
}

private int addWordlenWeights ( Channel chan , int weightIdx ) { int [ ] weigthsTab = atrac3p_wl_weights [ chan . chNum * 3 + weightIdx - 1 ] ; for ( int i = 0 ; i < ctx . numQuantUnits ; i ++ ) { chan . quWordlen [ i ] += weigthsTab [ i ] ; if ( chan . quWordlen [ i ] < 0 || chan . quWordlen [ i ] > 7 ) { log . error ( String . format ( "WL index out of range pos=%d, val=%d" , i , chan . quWordlen [ i ] ) ) ; return AT3P_ERROR ; } } return 0 ; }
add weighting coefficients to the decoded word - length information .
