diff options
author | Matt A. Tobin <email@mattatobin.com> | 2021-09-23 22:46:30 -0400 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-01 14:31:39 +0200 |
commit | 3635039d2be6264673f3b89b8df390f03159fcaa (patch) | |
tree | 95d05b42c8f0af58e2608bbe53fe1ab800a88a94 /dom/interfaces | |
parent | 711e049432900fcfb421e6cceb6ed311519fd6c1 (diff) | |
download | uxp-3635039d2be6264673f3b89b8df390f03159fcaa.tar.gz |
Issue #1806 - Part 2: Adjust the platform for lib changes
Diffstat (limited to 'dom/interfaces')
-rw-r--r-- | dom/interfaces/base/nsIDOMWindowUtils.idl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dom/interfaces/base/nsIDOMWindowUtils.idl b/dom/interfaces/base/nsIDOMWindowUtils.idl index 70ec7e0ae6..200bd3caf6 100644 --- a/dom/interfaces/base/nsIDOMWindowUtils.idl +++ b/dom/interfaces/base/nsIDOMWindowUtils.idl @@ -29,6 +29,7 @@ native nscolor(nscolor); [ptr] native gfxContext(gfxContext); typedef unsigned long long nsViewID; +interface nsIArray; interface nsICycleCollectorListener; interface nsIDOMNode; interface nsIDOMNodeList; @@ -1426,6 +1427,23 @@ interface nsIDOMWindowUtils : nsISupports { readonly attribute AString currentAudioBackend; /** + * Returns the max channel counts of the current audio device. + */ + readonly attribute unsigned long currentMaxAudioChannels; + + /** + * Returns the preferred sample rate of the current audio device. + */ + readonly attribute unsigned long currentPreferredSampleRate; + + /** + * Returns all the audio input/output devices. + */ + const unsigned short AUDIO_INPUT = 0; + const unsigned short AUDIO_OUTPUT = 1; + nsIArray audioDevices(in unsigned short aSide); + + /** * Record (and return) frame-intervals for frames which were presented * between calling StartFrameTimeRecording and StopFrameTimeRecording. * |