speaker-calibration 2.2.164 → 2.2.166

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speaker-calibration",
3
- "version": "2.2.164",
3
+ "version": "2.2.166",
4
4
  "description": "Speaker calibration library for auditory testing",
5
5
  "main": "dist/main.js",
6
6
  "directories": {
@@ -117,6 +117,7 @@ class Speaker extends AudioPeer {
117
117
  params.calibrateSoundSmoothOctaves,
118
118
  params.calibrateSoundPowerBinDesiredSec,
119
119
  params.calibrateSoundPowerDbSDToleratedDb,
120
+ params.calibrateSoundTaperSec,
120
121
  params.micManufacturer,
121
122
  params.micSerialNumber,
122
123
  params.micModelNumber,
@@ -545,6 +546,7 @@ class Speaker extends AudioPeer {
545
546
  params.calibrateSoundSmoothOctaves,
546
547
  params.calibrateSoundPowerBinDesiredSec,
547
548
  params.calibrateSoundPowerDbSDToleratedDb,
549
+ params.calibrateSoundTaperSec,
548
550
  params.micManufacturer,
549
551
  params.micSerialNumber,
550
552
  params.micModelNumber,
@@ -102,8 +102,6 @@ class Combination extends AudioCalibrator {
102
102
  /** @private */
103
103
  #audioContext;
104
104
 
105
- /** @private */
106
- TAPER_SECS = 5;
107
105
 
108
106
  /** @private */
109
107
  offsetGainNode;
@@ -2649,6 +2647,7 @@ class Combination extends AudioCalibrator {
2649
2647
  _calibrateSoundSmoothOctaves = 0.33,
2650
2648
  _calibrateSoundPowerBinDesiredSec = 0.2,
2651
2649
  _calibrateSoundPowerDbSDToleratedDb = 1,
2650
+ _calibrateSoundTaperSec = 0.01,
2652
2651
  micManufacturer = '',
2653
2652
  micSerialNumber = '',
2654
2653
  micModelNumber = '',
@@ -2665,6 +2664,7 @@ class Combination extends AudioCalibrator {
2665
2664
  reminder,
2666
2665
  calibrateSoundLimit,
2667
2666
  ) => {
2667
+ this.TAPER_SECS = _calibrateSoundTaperSec;
2668
2668
  this.calibrateSoundLimit = calibrateSoundLimit;
2669
2669
  this._calibrateSoundBurstDb = _calibrateSoundBurstDb;
2670
2670
  this._calibrateSoundBurstFilteredExtraDb = _calibrateSoundBurstFilteredExtraDb;
@@ -2699,14 +2699,14 @@ class Combination extends AudioCalibrator {
2699
2699
 
2700
2700
  //new lCalib found at top of calibration files *1000hz, make sure to correct
2701
2701
  //based on zeroing of 1000hz, search for "*1000Hz"
2702
- // const ID = isSmartPhone ? micModelNumber : micSerialNumber;
2703
- // const OEM = isSmartPhone
2704
- // ? micModelName === 'UMIK-1' || micModelName === 'UMIK-2'
2705
- // ? 'minidsp'
2706
- // : this.deviceInfo.OEM.toLowerCase().split(' ').join('')
2707
- // : micManufacturer.toLowerCase().split(' ').join('');
2708
- const ID = "712-5669";
2709
- const OEM = "minidsp";
2702
+ const ID = isSmartPhone ? micModelNumber : micSerialNumber;
2703
+ const OEM = isSmartPhone
2704
+ ? micModelName === 'UMIK-1' || micModelName === 'UMIK-2'
2705
+ ? 'minidsp'
2706
+ : this.deviceInfo.OEM.toLowerCase().split(' ').join('')
2707
+ : micManufacturer.toLowerCase().split(' ').join('');
2708
+ // const ID = "712-5669";
2709
+ // const OEM = "minidsp";
2710
2710
  const micInfo = {
2711
2711
  micModelName: isSmartPhone ? micModelName : microphoneName,
2712
2712
  OEM: isSmartPhone