Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
45cab273
Commit
45cab273
authored
Jun 07, 2023
by
Davide Beatrici
Committed by
Alexandre Julliard
Jun 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss: Use mmdevapi's AudioClient's SetEventHandle, Reset, Stop.
parent
cc3362ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
53 deletions
+7
-53
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+7
-53
No files found.
dlls/wineoss.drv/mmdevdrv.c
View file @
45cab273
...
...
@@ -805,58 +805,12 @@ static HRESULT WINAPI AudioClient_Start(IAudioClient3 *iface)
return
params
.
result
;
}
static
HRESULT
WINAPI
AudioClient_Stop
(
IAudioClient3
*
iface
)
{
ACImpl
*
This
=
impl_from_IAudioClient3
(
iface
);
struct
stop_params
params
;
TRACE
(
"(%p)
\n
"
,
This
);
if
(
!
This
->
stream
)
return
AUDCLNT_E_NOT_INITIALIZED
;
extern
HRESULT
WINAPI
client_Stop
(
IAudioClient3
*
iface
);
params
.
stream
=
This
->
stream
;
OSS_CALL
(
stop
,
&
params
);
return
params
.
result
;
}
static
HRESULT
WINAPI
AudioClient_Reset
(
IAudioClient3
*
iface
)
{
ACImpl
*
This
=
impl_from_IAudioClient3
(
iface
);
struct
reset_params
params
;
TRACE
(
"(%p)
\n
"
,
This
);
if
(
!
This
->
stream
)
return
AUDCLNT_E_NOT_INITIALIZED
;
extern
HRESULT
WINAPI
client_Reset
(
IAudioClient3
*
iface
);
params
.
stream
=
This
->
stream
;
OSS_CALL
(
reset
,
&
params
);
return
params
.
result
;
}
static
HRESULT
WINAPI
AudioClient_SetEventHandle
(
IAudioClient3
*
iface
,
HANDLE
event
)
{
ACImpl
*
This
=
impl_from_IAudioClient3
(
iface
);
struct
set_event_handle_params
params
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
event
);
if
(
!
event
)
return
E_INVALIDARG
;
if
(
!
This
->
stream
)
return
AUDCLNT_E_NOT_INITIALIZED
;
params
.
stream
=
This
->
stream
;
params
.
event
=
event
;
OSS_CALL
(
set_event_handle
,
&
params
);
return
params
.
result
;
}
extern
HRESULT
WINAPI
client_SetEventHandle
(
IAudioClient3
*
iface
,
HANDLE
event
);
extern
HRESULT
WINAPI
client_GetService
(
IAudioClient3
*
iface
,
REFIID
riid
,
void
**
ppv
);
...
...
@@ -895,9 +849,9 @@ static const IAudioClient3Vtbl AudioClient3_Vtbl =
AudioClient_GetMixFormat
,
AudioClient_GetDevicePeriod
,
AudioClient_Start
,
AudioC
lient_Stop
,
AudioC
lient_Reset
,
AudioC
lient_SetEventHandle
,
c
lient_Stop
,
c
lient_Reset
,
c
lient_SetEventHandle
,
client_GetService
,
client_IsOffloadCapable
,
client_SetClientProperties
,
...
...
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