From 4bc3599e0ac40f6e3b8762cc3ec5f1b13a0c1b19 Mon Sep 17 00:00:00 2001 From: Ian Bishop <1296987+porjo@users.noreply.github.com> Date: Thu, 6 Apr 2023 21:37:15 +1000 Subject: [PATCH] Update volume example to use web audio API --- src/content/getusermedia/volume/index.html | 3 +- src/content/getusermedia/volume/js/main.js | 31 +++---- .../getusermedia/volume/js/soundmeter.js | 85 +++++++++---------- 3 files changed, 55 insertions(+), 64 deletions(-) diff --git a/src/content/getusermedia/volume/index.html b/src/content/getusermedia/volume/index.html index 88873e958e..101a2d8aad 100644 --- a/src/content/getusermedia/volume/index.html +++ b/src/content/getusermedia/volume/index.html @@ -65,7 +65,7 @@
Note that you will not hear your own voice; use the local audio rendering demo for that.
-The audioContext
, stream
and soundMeter
variables are in global scope, so
+
The audioContext
and stream
variables are in global scope, so
you can inspect them from the console.