Lines Matching refs:config

108 function CCEElement(config) {  argument
109 this.ics = new ICStream(config);
128 decode: function(stream, config) { argument
158 this.ics.decode(stream, config, false);
270 function CPEElement(config) { argument
272 this.left = new ICStream(config);
273 this.right = new ICStream(config);
283 CPEElement.prototype.decode = function(stream, config) { argument
289 left.info.decode(stream, config, true);
319 left.decode(stream, config, this.commonWindow);
320 right.decode(stream, config, this.commonWindow);
382 this.config = {};
384 this.config.profile = stream.read(5);
385 if (this.config.profile === AOT_ESCAPE)
386 this.config.profile = 32 + stream.read(6);
388 this.config.sampleIndex = stream.read(4);
389 if (this.config.sampleIndex === 0x0f) {
390 this.config.sampleRate = stream.read(24);
392 if (tables.SAMPLE_RATES[i] === this.config.sampleRate) {
393 this.config.sampleIndex = i;
398 this.config.sampleRate = tables.SAMPLE_RATES[this.config.sampleIndex];
401 this.config.chanConfig = stream.read(4);
402 … this.format.channelsPerFrame = this.config.chanConfig; // sometimes m4a files encode this wrong
404 switch (this.config.profile) {
411 this.config.frameLength = 1024;
417 if (this.config.profile > 16) { // error resiliant profile
418 this.config.sectionDataResilience = stream.read(1);
419 this.config.scalefactorResilience = stream.read(1);
420 this.config.spectralDataResilience = stream.read(1);
426 if (this.config.chanConfig === CHANNEL_CONFIG_NONE) {
434 throw new Error('AAC profile ' + this.config.profile + ' not supported.');
437 this.filter_bank = new FilterBank(false, this.config.chanConfig);
438 this.ics = new ICStream(this.config);
439 this.cpe = new CPEElement(this.config);
440 this.cce = new CCEElement(this.config);
462 config = this.config,
463 frameLength = config.frameLength,
476 ics.decode(stream, config, false);
484 cpe.decode(stream, config);
491 cce.decode(stream, config);
547 var channels = this.config.chanConfig;
553 var len = mult * this.config.frameLength;
579 var profile = this.config.profile,
614 var profile = this.config.profile,
2692 function ICStream(config) { argument
2696 this.data = new Float32Array(config.frameLength);
2699 this.tns = new TNS(config);
2722 decode: function(stream, config, commonWindow) { argument
2726 this.info.decode(stream, config, commonWindow);
2728 this.decodeBandTypes(stream, config);
2749 decodeBandTypes: function(stream, config) { argument
2945 decode: function(stream, config, commonWindow) { argument
2967 this.swbOffsets = tables.SWB_OFFSET_128[config.sampleIndex];
2968 this.swbCount = tables.SWB_SHORT_WINDOW_COUNT[config.sampleIndex];
2973 this.swbOffsets = tables.SWB_OFFSET_1024[config.sampleIndex];
2974 this.swbCount = tables.SWB_LONG_WINDOW_COUNT[config.sampleIndex];
2978 this.decodePrediction(stream, config, commonWindow);
2982 decodePrediction: function(stream, config, commonWindow) { argument
2985 switch (config.profile) {
2995 throw new Error('Unsupported profile for prediction ' + config.profile);
4489 function TNS(config) { argument
4490 this.maxBands = TNS_MAX_BANDS_1024[config.sampleIndex]