speaker-calibration 2.2.204 → 2.2.206
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/dist/example/listener.js
CHANGED
|
@@ -96,7 +96,7 @@ switch (isSmartPhone) {
|
|
|
96
96
|
console.log(err);
|
|
97
97
|
}
|
|
98
98
|
listenerParameters.microphoneFromAPI = webAudioDeviceNames.microphone;
|
|
99
|
-
listenerParameters.microphoneDeviceId = webAudioDeviceNames.
|
|
99
|
+
listenerParameters.microphoneDeviceId = webAudioDeviceNames.microphone;
|
|
100
100
|
let lock = null;
|
|
101
101
|
try {
|
|
102
102
|
if ('wakeLock' in navigator) {
|
|
@@ -107,6 +107,7 @@ switch (isSmartPhone) {
|
|
|
107
107
|
}
|
|
108
108
|
console.log(lock);
|
|
109
109
|
console.log('Starting Calibration');
|
|
110
|
+
console.log('Device id in example listenr:',listenerParameters.microphoneDeviceId);
|
|
110
111
|
window.listener = new speakerCalibrator.Listener(listenerParameters);
|
|
111
112
|
console.log(window.listener);
|
|
112
113
|
if (lock) {
|
|
@@ -120,6 +121,7 @@ switch (isSmartPhone) {
|
|
|
120
121
|
calibrationBeginButton2.remove();
|
|
121
122
|
container.style.display = 'block';
|
|
122
123
|
// event listener for when the page is loaded
|
|
124
|
+
|
|
123
125
|
window.addEventListener('load', () => {
|
|
124
126
|
// set the text of the html elements
|
|
125
127
|
recordingInProgressElement.innerHTML = recordingInProgress;
|
|
@@ -142,6 +144,7 @@ switch (isSmartPhone) {
|
|
|
142
144
|
const p = document.createElement('p');
|
|
143
145
|
p.innerHTML = backToExperimentWindow;
|
|
144
146
|
message.appendChild(p);
|
|
147
|
+
listenerParameters.microphoneDeviceId = urlParams.get('deviceId');
|
|
145
148
|
window.listener = new speakerCalibrator.Listener(listenerParameters);
|
|
146
149
|
console.log(window.listener);
|
|
147
150
|
});
|