Move gain debug message to be more reliable

This commit is contained in:
TelepathicWalrus 2023-05-13 13:44:23 +01:00
parent 62300149d5
commit c5dfdc7b23

View File

@ -118,12 +118,11 @@ class HtmlAudioPlayer {
} else {
self.gainNode.gain.value = 1;
}
console.debug('gain:' + self.gainNode.gain.value);
}).catch((err)=> {
console.error('[UserSettings] failed to load userSettings', err);
});
console.debug('gain:' + self.gainNode.gain.value);
// Convert to seconds
const seconds = (options.playerStartPositionTicks || 0) / 10000000;
if (seconds) {