src/main/java/net/sourceforge/jaad/aac/sbr/SBR.java
private void sbr_noise(IBitStream ld, int ch) throws AACException {
		int noise, band;
		int delta = 0;
		int[][] t_huff, f_huff;

		if(this.bs_coupling&&(ch==1)) {
			delta = 1;
			t_huff = T_HUFFMAN_NOISE_BAL_3_0DB;
			f_huff = F_HUFFMAN_ENV_BAL_3_0DB;
		}
		else {
			delta = 0;
			t_huff = T_HUFFMAN_NOISE_3_0DB;
			f_huff = F_HUFFMAN_ENV_3_0DB;
		}

		for(noise = 0; noise<this.L_Q[ch]; noise++) {
			if(this.bs_df_noise[ch][noise]==0) {
				if(this.bs_coupling&&(ch==1)) {
					this.Q[ch][0][noise] = ld.readBits(5)<<delta;
				}
				else {
					this.Q[ch][0][noise] = ld.readBits(5)<<delta;
				}
				for(band = 1; band<this.N_Q; band++) {
					this.Q[ch][band][noise] = (decodeHuffman(ld, f_huff)<<delta);
				}
			}
			else {
				for(band = 0; band<this.N_Q; band++) {
					this.Q[ch][band][noise] = (decodeHuffman(ld, t_huff)<<delta);
				}
			}
		}

		NoiseEnvelope.extract_noise_floor_data(this, ch);
	}
private void sbr_noise(IBitStream ld, int ch) throws AACException {
		int noise, band;
		int delta = 0;
		int[][] t_huff, f_huff;

		if(this.bs_coupling&&(ch==1)) {
			delta = 1;
			t_huff = T_HUFFMAN_NOISE_BAL_3_0DB;
			f_huff = F_HUFFMAN_ENV_BAL_3_0DB;
		}
		else {
			delta = 0;
			t_huff = T_HUFFMAN_NOISE_3_0DB;
			f_huff = F_HUFFMAN_ENV_3_0DB;
		}

		for(noise = 0; noise<this.L_Q[ch]; noise++) {
			if(this.bs_df_noise[ch][noise]==0) {
				if(this.bs_coupling&&(ch==1)) {
					this.Q[ch][0][noise] = ld.readBits(5)<<delta;
				}
				else {
					this.Q[ch][0][noise] = ld.readBits(5)<<delta;
				}
				for(band = 1; band<this.N_Q; band++) {
					this.Q[ch][band][noise] = (decodeHuffman(ld, f_huff)<<delta);
				}
			}
			else {
				for(band = 0; band<this.N_Q; band++) {
					this.Q[ch][band][noise] = (decodeHuffman(ld, t_huff)<<delta);
				}
			}
		}

		NoiseEnvelope.extract_noise_floor_data(this, ch);
	}
private void sbr_noise ( IBitStream ld , int ch ) throws AACException { int noise , band ; int delta = 0 ; int [ ] [ ] t_huff , f_huff ; if ( this . bs_coupling && ( ch == 1 ) ) { delta = 1 ; t_huff = T_HUFFMAN_NOISE_BAL_3_0DB ; f_huff = F_HUFFMAN_ENV_BAL_3_0DB ; } else { delta = 0 ; t_huff = T_HUFFMAN_NOISE_3_0DB ; f_huff = F_HUFFMAN_ENV_3_0DB ; } for ( noise = 0 ; noise < this . L_Q [ ch ] ; noise ++ ) { if ( this . bs_df_noise [ ch ] [ noise ] == 0 ) { if ( this . bs_coupling && ( ch == 1 ) ) { this . Q [ ch ] [ 0 ] [ noise ] = ld . readBits ( 5 ) << delta ; } else { this . Q [ ch ] [ 0 ] [ noise ] = ld . readBits ( 5 ) << delta ; } for ( band = 1 ; band < this . N_Q ; band ++ ) { this . Q [ ch ] [ band ] [ noise ] = ( decodeHuffman ( ld , f_huff ) << delta ) ; } } else { for ( band = 0 ; band < this . N_Q ; band ++ ) { this . Q [ ch ] [ band ] [ noise ] = ( decodeHuffman ( ld , t_huff ) << delta ) ; } } } NoiseEnvelope . extract_noise_floor_data ( this , ch ) ; }
/* table 11
/ * table 11