If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Control volume of AudioContext

NEW
Unassigned

Status

()

Firefox
Developer Tools: Web Audio Editor
3 years ago
3 years ago

People

(Reporter: jsantell, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

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;
You need to log in before you can comment on or make changes to this bug.