Module: wine
Branch: master
Commit: a0b28edabeb26556dfde667b12c818fda7e79fcb
URL: https://gitlab.winehq.org/wine/wine/-/commit/a0b28edabeb26556dfde667b12c818…
Author: Biswapriyo Nath <nathbappai(a)gmail.com>
Date: Wed Aug 30 08:32:25 2023 +0530
include: Add Windows.Media.Capture.MediaCategory enumeration.
Required for Windows.Media.Effects.IAudioEffectsManagerStatics interface.
---
include/Makefile.in | 1 +
include/windows.media.capture.idl | 48 +++++++++++++++++++++++++++++++++++++++
2 files changed, 49 insertions(+)
diff --git a/include/Makefile.in b/include/Makefile.in
index c0f2e873837..507686917a3 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -839,6 +839,7 @@ SOURCES = \
windows.graphics.holographic.idl \
windows.h \
windows.management.deployment.idl \
+ windows.media.capture.idl \
windows.media.closedcaptioning.idl \
windows.media.devices.idl \
windows.media.idl \
diff --git a/include/windows.media.capture.idl b/include/windows.media.capture.idl
new file mode 100644
index 00000000000..6598467005a
--- /dev/null
+++ b/include/windows.media.capture.idl
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2023 Biswapriyo Nath
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifdef __WIDL__
+#pragma winrt ns_prefix
+#endif
+
+import "windows.foundation.idl";
+
+namespace Windows.Media.Capture {
+ typedef enum MediaCategory MediaCategory;
+
+ [
+ contract(Windows.Foundation.UniversalApiContract, 1.0)
+ ]
+ enum MediaCategory
+ {
+ Other = 0,
+ Communications = 1,
+ [contract(Windows.Foundation.UniversalApiContract, 1.0)]
+ Media = 2,
+ [contract(Windows.Foundation.UniversalApiContract, 1.0)]
+ GameChat = 3,
+ [contract(Windows.Foundation.UniversalApiContract, 1.0)]
+ Speech = 4,
+ [contract(Windows.Foundation.UniversalApiContract, 12.0)]
+ FarFieldSpeech = 5,
+ [contract(Windows.Foundation.UniversalApiContract, 12.0)]
+ UniformSpeech = 6,
+ [contract(Windows.Foundation.UniversalApiContract, 12.0)]
+ VoiceTyping = 7,
+ };
+}