summaryrefslogtreecommitdiff
path: root/dom/interfaces
diff options
context:
space:
mode:
authorJeremy Andrews <athenian200@outlook.com>2021-08-24 14:35:49 -0500
committerJeremy Andrews <athenian200@outlook.com>2021-08-24 14:35:49 -0500
commit893fc903790e1ca5bba598113c49d94a165e333b (patch)
tree3d5c4f557b0ddf422d75b3616015cde10b390cd5 /dom/interfaces
parent41b1b3947c99d5f9478e0d3bd60a95b781c69431 (diff)
downloaduxp-893fc903790e1ca5bba598113c49d94a165e333b.tar.gz
Issue #1806 - Part 4: Add more audio troubleshooting information.
This should help us troubleshoot audio issues better in the future in general, since we'll know more about the hardware involved, etc.
Diffstat (limited to 'dom/interfaces')
-rw-r--r--dom/interfaces/base/nsIDOMWindowUtils.idl23
1 files changed, 23 insertions, 0 deletions
diff --git a/dom/interfaces/base/nsIDOMWindowUtils.idl b/dom/interfaces/base/nsIDOMWindowUtils.idl
index 70ec7e0ae6..e563a19985 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,28 @@ 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 channel layout of the current audio device.
+ */
+ readonly attribute AString currentPreferredChannelLayout;
+
+ /**
+ * 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.
*