mirror of
https://codeberg.org/armin/noiz.git
synced 2026-09-01 05:50:52 +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>
|
||||
const audioElA = new Audio();
|
||||
const audioElB = new Audio();
|
||||
const initVol = 0.75;
|
||||
audioElA.volume = initVol;
|
||||
audioElB.volume = initVol;
|
||||
audioElA.volume = 1;
|
||||
audioElB.volume = 1;
|
||||
let audio = audioElA;
|
||||
let audioNext = audioElB;
|
||||
let gainA = null;
|
||||
let gainB = null;
|
||||
let sourceNodeA = null;
|
||||
let sourceNodeB = null;
|
||||
let volumeGain = null;
|
||||
let crossfadeDuration = 0;
|
||||
let crossfadeTimer = null;
|
||||
let isCrossfading = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue