mirror of
https://codeberg.org/armin/noiz.git
synced 2026-09-01 14:00:54 +02:00
move volume control to a gain node after analysers so peak/VU meters always show full signal level
This commit is contained in:
parent
5b97e1627e
commit
a225805f27
1 changed files with 3 additions and 3 deletions
|
|
@ -312,15 +312,15 @@ footer .footer-track { flex: 1; min-width: 0; white-space: nowrap; overflow: hid
|
||||||
<script>
|
<script>
|
||||||
const audioElA = new Audio();
|
const audioElA = new Audio();
|
||||||
const audioElB = new Audio();
|
const audioElB = new Audio();
|
||||||
const initVol = 0.75;
|
audioElA.volume = 1;
|
||||||
audioElA.volume = initVol;
|
audioElB.volume = 1;
|
||||||
audioElB.volume = initVol;
|
|
||||||
let audio = audioElA;
|
let audio = audioElA;
|
||||||
let audioNext = audioElB;
|
let audioNext = audioElB;
|
||||||
let gainA = null;
|
let gainA = null;
|
||||||
let gainB = null;
|
let gainB = null;
|
||||||
let sourceNodeA = null;
|
let sourceNodeA = null;
|
||||||
let sourceNodeB = null;
|
let sourceNodeB = null;
|
||||||
|
let volumeGain = null;
|
||||||
let crossfadeDuration = 0;
|
let crossfadeDuration = 0;
|
||||||
let crossfadeTimer = null;
|
let crossfadeTimer = null;
|
||||||
let isCrossfading = false;
|
let isCrossfading = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue