Alistair Leslie-Hughes : include: Add more sapi interfaces.

Alexandre Julliard julliard at winehq.org
Thu Sep 30 16:04:43 CDT 2021


Module: wine
Branch: master
Commit: aa629c4c7225166f4ee46476d98702df2e142711
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=aa629c4c7225166f4ee46476d98702df2e142711

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Thu Sep 30 18:59:30 2021 +1000

include: Add more sapi interfaces.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/sapi.idl | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)

diff --git a/include/sapi.idl b/include/sapi.idl
index d2c1aac8afc..ba577d4de04 100644
--- a/include/sapi.idl
+++ b/include/sapi.idl
@@ -1065,6 +1065,31 @@ interface ISpVoice : ISpEventSource
                 [in] ULONG count);
 };
 
+[
+    object,
+    uuid(be7a9cc9-5f9e-11d2-960f-00c04f8ee628),
+    pointer_default(unique),
+    local,
+    restricted
+]
+interface ISpEventSink : IUnknown
+{
+    HRESULT AddEvents([in] const SPEVENT *events, [in] ULONG count);
+    HRESULT GetEventInterest([out] ULONGLONG *interest);
+};
+
+[
+    object,
+    uuid(5b559f40-e952-11d2-bb91-00c04f8ee6c0),
+    pointer_default(unique),
+    restricted
+]
+interface ISpObjectWithToken : IUnknown
+{
+    HRESULT SetObjectToken([in] ISpObjectToken *token);
+    HRESULT GetObjectToken([out] ISpObjectToken **token);
+};
+
 [
     object,
     uuid(bed530be-2606-4f4d-a1c0-54c5cda5566f),
@@ -1097,6 +1122,21 @@ interface ISpAudio : ISpStreamFormat
     HRESULT GetBufferNotifySize([out] ULONG *size);
     HRESULT SetBufferNotifySize([in] ULONG size);
 };
+[
+    object,
+    uuid(15806f6e-1d70-4b48-98e6-3b1a007509ab),
+    pointer_default(unique),
+    local,
+    restricted
+]
+interface ISpMMSysAudio : ISpAudio
+{
+    HRESULT GetDeviceId([out] UINT *id);
+    HRESULT SetDeviceId([in] UINT id);
+    HRESULT GetMMHandle([out] void **handle);
+    HRESULT GetLineId([out] UINT *id);
+    HRESULT SetLineId([in] UINT id);
+};
 
 [
     object,
@@ -1254,4 +1294,26 @@ library SpeechLib
         interface ISpStream;
         [default] interface ISpeechFileStream;
     };
+
+    [
+        uuid(cf3d2e50-53f2-11d2-960c-00c04f8ee628)
+    ]
+    coclass SpMMAudioIn
+    {
+        interface ISpEventSource;
+        interface ISpEventSink;
+        interface ISpObjectWithToken;
+        interface ISpMMSysAudio;
+    };
+
+    [
+        uuid(a8c680eb-3d32-11d2-9ee7-00c04f797396)
+    ]
+    coclass SpMMAudioOut
+    {
+        interface ISpEventSource;
+        interface ISpEventSink;
+        interface ISpObjectWithToken;
+        interface ISpMMSysAudio;
+    };
 }




More information about the wine-cvs mailing list