summaryrefslogtreecommitdiff
path: root/dom/interfaces
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2022-04-05 13:35:47 +0000
committerathenian200 <athenian200@outlook.com>2022-04-05 13:35:47 +0000
commit0bc66e3b04e77af307b62371ae9f4be70b2b19b7 (patch)
tree62f5a511ef1f2626e4a8808b55c9d590db594ee1 /dom/interfaces
parent6e6b5d89964ea726b264c711bdf6f02fe0c006f5 (diff)
parentbb830b178aa932877da78ff6c1ba6a236aa1dc7d (diff)
downloaduxp-0bc66e3b04e77af307b62371ae9f4be70b2b19b7.tar.gz
Merge pull request 'Update libcubeb to latest version' (#1812) from athenian200/UXP:libcubeb_final into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/1812
Diffstat (limited to 'dom/interfaces')
-rw-r--r--dom/interfaces/base/nsIDOMWindowUtils.idl18
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.
*