Closed Bug 1054465 Opened 10 years ago Closed 7 years ago

Control volume of AudioContext

Categories

(DevTools Graveyard :: Web Audio Editor, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jsantell, Unassigned)

Details

Would be cool to just mute a context, as the most annoying thing about playing with web audio is hearing the same thing over and over again.

Experimented with AudioChannelService [http://143th.net/post/79292963535/audio-volume-and-mute-per-window-object] but unfortunately one must enable `media.useAudioChannelService` which changes how audio works in the entire browser (FxOS has this by default), so doesn't seem like a good solution.

Having a gain node generated at the start placed before the Destination node could work, but want to make this a last resort.
To use AudioChannelService, if we need to later:

let utils = this.tabActor.browser.contentWindow                                                   
  .QueryInterface(Ci.nsIInterfaceRequestor)
  .getInterface(Ci.nsIDOMWindowUtils);
utils.audioMuted = true;
Mass-closing inactive (2 years+) bugs on unmaintained devtools components.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.