Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
0e7a4fd7
Commit
0e7a4fd7
authored
Apr 12, 2023
by
Davide Beatrici
Committed by
Alexandre Julliard
Apr 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Export function to get AudioSessionWrapper object.
parent
9bfaf65b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
mmdevdrv.c
dlls/winecoreaudio.drv/mmdevdrv.c
+18
-0
winecoreaudio.drv.spec
dlls/winecoreaudio.drv/winecoreaudio.drv.spec
+1
-0
No files found.
dlls/winecoreaudio.drv/mmdevdrv.c
View file @
0e7a4fd7
...
...
@@ -2325,3 +2325,21 @@ HRESULT WINAPI AUDDRV_GetAudioSessionManager(IMMDevice *device,
return
S_OK
;
}
HRESULT
WINAPI
AUDDRV_GetAudioSessionWrapper
(
const
GUID
*
guid
,
IMMDevice
*
device
,
AudioSessionWrapper
**
out
)
{
AudioSession
*
session
;
HRESULT
hr
=
get_audio_session
(
guid
,
device
,
0
,
&
session
);
if
(
FAILED
(
hr
))
return
hr
;
*
out
=
AudioSessionWrapper_Create
(
NULL
);
if
(
!*
out
)
return
E_OUTOFMEMORY
;
(
*
out
)
->
session
=
session
;
return
S_OK
;
}
dlls/winecoreaudio.drv/winecoreaudio.drv.spec
View file @
0e7a4fd7
...
...
@@ -7,3 +7,4 @@
@ stdcall -private GetEndpointIDs(long ptr ptr ptr ptr) AUDDRV_GetEndpointIDs
@ stdcall -private GetAudioEndpoint(ptr ptr ptr) AUDDRV_GetAudioEndpoint
@ stdcall -private GetAudioSessionManager(ptr ptr) AUDDRV_GetAudioSessionManager
@ stdcall -private GetAudioSessionWrapper(ptr ptr ptr) AUDDRV_GetAudioSessionWrapper
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment