Lines Matching refs:ch

4547         for (var ch = 0; ch < nch; ch++) {
4552 allocation[ch][sb] = nb ? nb + 1 : 0;
4568 for (var ch = 0; ch < nch; ch++) {
4569 if (allocation[ch][sb]) {
4570 scalefactor[ch][sb] = stream.read(6);
4584 for (var ch = 0; ch < nch; ch++) {
4585 var nb = allocation[ch][sb];
4586 …frame.sbsample[ch][s][sb] = nb ? this.sample(stream, nb) * tables.SF_TABLE[scalefactor[ch][sb]] : …
4595 for (var ch = 0; ch < nch; ch++) {
4596 frame.sbsample[ch][s][sb] = sample * tables.SF_TABLE[scalefactor[ch][sb]];
4599 for (var ch = 0; ch < nch; ch++) {
4600 frame.sbsample[ch][s][sb] = 0;
4763 for (var ch = 0; ch < nch; ch++)
4764 allocation[ch][sb] = stream.read(nbal);
4777 for (var ch = 0; ch < nch; ch++) {
4778 if (allocation[ch][sb])
4779 scfsi[ch][sb] = stream.read(2);
4790 for (var ch = 0; ch < nch; ch++) {
4791 if (allocation[ch][sb]) {
4792 scalefactor[ch][sb][0] = stream.read(6);
4794 switch (scfsi[ch][sb]) {
4796 scalefactor[ch][sb][2] =
4797 scalefactor[ch][sb][1] = scalefactor[ch][sb][0];
4801 scalefactor[ch][sb][1] = stream.read(6);
4806 scalefactor[ch][sb][2] = stream.read(6);
4809 if (scfsi[ch][sb] & 1)
4810 scalefactor[ch][sb][1] = scalefactor[ch][sb][scfsi[ch][sb] - 1];
4825 for (var ch = 0; ch < nch; ch++) {
4826 if (index = allocation[ch][sb]) {
4830 var scale = tables.SF_TABLE[scalefactor[ch][sb][gr >> 2]];
4832 frame.sbsample[ch][3 * gr + s][sb] = this.samples[s] * scale;
4836 frame.sbsample[ch][3 * gr + s][sb] = 0;
4848 for (var ch = 0; ch < nch; ch++) {
4849 var scale = tables.SF_TABLE[scalefactor[ch][sb][gr >> 2]];
4851 frame.sbsample[ch][3 * gr + s][sb] = this.samples[s] * scale;
4855 for (var ch = 0; ch < nch; ch++) {
4857 frame.sbsample[ch][3 * gr + s][sb] = 0;
4864 for (var ch = 0; ch < nch; ch++) {
4867 frame.sbsample[ch][3 * gr + s][sb] = 0;
4924 this.ch = [new MP3Channel(), new MP3Channel()];
5089 for (var ch = 0; ch < nch; ++ch)
5090 si.scfsi[ch] = stream.read(4);
5096 for (var ch = 0; ch < nch; ch++) {
5097 var channel = granule.ch[ch];
5118 if (!lsf && channel.block_type === 2 && si.scfsi[ch])
5179 for (var ch = 0; ch < nch; ++ch) {
5180 var channel = granule.ch[ch];
5183 sfbwidth[ch] = tables.SFBWIDTH_TABLE[sfreqi].l;
5185 …sfbwidth[ch] = (channel.flags & tables.MIXED_BLOCK_FLAG) ? tables.SFBWIDTH_TABLE[sfreqi].m : table…
5189 …part2_length = this.scalefactors_lsf(stream, channel, ch === 0 ? 0 : si.gr[1].ch[1], header.mode_e…
5191 … part2_length = this.scalefactors(stream, channel, si.gr[0].ch[ch], gr === 0 ? 0 : si.scfsi[ch]);
5194 this.huffmanDecode(stream, xr[ch], channel, sfbwidth[ch], part2_length);
5202 for (var ch = 0; ch < nch; ch++) {
5203 var channel = granule.ch[ch];
5204 var sample = frame.sbsample[ch].slice(18 * gr);
5210 this.reorder(xr[ch], channel, sfbwidth[ch]);
5220 this.aliasreduce(xr[ch], 36);
5222 this.aliasreduce(xr[ch], 576);
5233 this.imdct_l(xr[ch].subarray(l, l + 18), output, block_type);
5234 this.overlap(output, frame.overlap[ch][sb], sample, sb);
5239 this.imdct_s(xr[ch].subarray(l, l + 18), output);
5240 this.overlap(output, frame.overlap[ch][sb], sample, sb);
5248 while (i > 36 && xr[ch][i - 1] === 0) {
5257 this.imdct_l(xr[ch].subarray(l, l + 18), output, channel.block_type);
5258 this.overlap(output, frame.overlap[ch][sb], sample, sb);
5266 this.imdct_s(xr[ch].subarray(l, l + 18), output);
5267 this.overlap(output, frame.overlap[ch][sb], sample, sb);
5276 this.overlap_z(frame.overlap[ch][sb], sample, sb);
5786 …if (granule.ch[0].block_type !== granule.ch[1].block_type || (granule.ch[0].flags & tables.MIXED_B…
5794 var right_ch = granule.ch[1];
5876 var illegal_pos = granules[gr + 1].ch[1].scalefac;
7153 for (var ch = 0; ch < nch; ++ch) {
7154 var sbsample = frame.sbsample[ch];
7155 var filter = this.filter[ch];
7157 var pcm = this.pcm.samples[ch];