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
530c79fb
Commit
530c79fb
authored
Oct 01, 2020
by
Andrew Eikum
Committed by
Alexandre Julliard
Oct 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Implement IsOffloadCapable.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
370a538e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
10 deletions
+42
-10
render.c
dlls/mmdevapi/tests/render.c
+7
-0
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+7
-2
mmdevdrv.c
dlls/wineandroid.drv/mmdevdrv.c
+7
-2
mmdevdrv.c
dlls/winecoreaudio.drv/mmdevdrv.c
+7
-2
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+7
-2
mmdevdrv.c
dlls/winepulse.drv/mmdevdrv.c
+7
-2
No files found.
dlls/mmdevapi/tests/render.c
View file @
530c79fb
...
...
@@ -140,6 +140,7 @@ static void test_audioclient(void)
WAVEFORMATEX
*
pwfx
,
*
pwfx2
;
REFERENCE_TIME
t1
,
t2
;
HANDLE
handle
;
BOOL
offload_capable
;
hr
=
IMMDevice_Activate
(
dev
,
&
IID_IAudioClient2
,
CLSCTX_INPROC_SERVER
,
NULL
,
(
void
**
)
&
ac2
);
...
...
@@ -253,6 +254,12 @@ static void test_audioclient(void)
hr
=
IAudioClient_QueryInterface
(
ac
,
&
IID_IAudioClient2
,
(
void
**
)
&
ac2
);
ok
(
hr
==
S_OK
,
"Failed to query IAudioClient2 interface: %08x
\n
"
,
hr
);
hr
=
IAudioClient2_IsOffloadCapable
(
ac2
,
AudioCategory_BackgroundCapableMedia
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"IsOffloadCapable gave wrong error: %08x
\n
"
,
hr
);
hr
=
IAudioClient2_IsOffloadCapable
(
ac2
,
AudioCategory_BackgroundCapableMedia
,
&
offload_capable
);
ok
(
hr
==
S_OK
,
"IsOffloadCapable failed: %08x
\n
"
,
hr
);
IAudioClient2_Release
(
ac2
);
test_uninitialized
(
ac
);
...
...
dlls/winealsa.drv/mmdevdrv.c
View file @
530c79fb
...
...
@@ -2661,9 +2661,14 @@ static HRESULT WINAPI AudioClient_IsOffloadCapable(IAudioClient2 *iface,
{
ACImpl
*
This
=
impl_from_IAudioClient2
(
iface
);
FIXM
E
(
"(%p)->(0x%x, %p)
\n
"
,
This
,
category
,
offload_capable
);
TRAC
E
(
"(%p)->(0x%x, %p)
\n
"
,
This
,
category
,
offload_capable
);
return
E_NOTIMPL
;
if
(
!
offload_capable
)
return
E_INVALIDARG
;
*
offload_capable
=
FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
AudioClient_SetClientProperties
(
IAudioClient2
*
iface
,
...
...
dlls/wineandroid.drv/mmdevdrv.c
View file @
530c79fb
...
...
@@ -1620,9 +1620,14 @@ static HRESULT WINAPI AudioClient_IsOffloadCapable(IAudioClient2 *iface,
{
ACImpl
*
This
=
impl_from_IAudioClient2
(
iface
);
FIXM
E
(
"(%p)->(0x%x, %p)
\n
"
,
This
,
category
,
offload_capable
);
TRAC
E
(
"(%p)->(0x%x, %p)
\n
"
,
This
,
category
,
offload_capable
);
return
E_NOTIMPL
;
if
(
!
offload_capable
)
return
E_INVALIDARG
;
*
offload_capable
=
FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
AudioClient_SetClientProperties
(
IAudioClient2
*
iface
,
...
...
dlls/winecoreaudio.drv/mmdevdrv.c
View file @
530c79fb
...
...
@@ -2228,9 +2228,14 @@ static HRESULT WINAPI AudioClient_IsOffloadCapable(IAudioClient2 *iface,
{
ACImpl
*
This
=
impl_from_IAudioClient2
(
iface
);
FIXM
E
(
"(%p)->(0x%x, %p)
\n
"
,
This
,
category
,
offload_capable
);
TRAC
E
(
"(%p)->(0x%x, %p)
\n
"
,
This
,
category
,
offload_capable
);
return
E_NOTIMPL
;
if
(
!
offload_capable
)
return
E_INVALIDARG
;
*
offload_capable
=
FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
AudioClient_SetClientProperties
(
IAudioClient2
*
iface
,
...
...
dlls/wineoss.drv/mmdevdrv.c
View file @
530c79fb
...
...
@@ -1785,9 +1785,14 @@ static HRESULT WINAPI AudioClient_IsOffloadCapable(IAudioClient2 *iface,
{
ACImpl
*
This
=
impl_from_IAudioClient2
(
iface
);
FIXM
E
(
"(%p)->(0x%x, %p)
\n
"
,
This
,
category
,
offload_capable
);
TRAC
E
(
"(%p)->(0x%x, %p)
\n
"
,
This
,
category
,
offload_capable
);
return
E_NOTIMPL
;
if
(
!
offload_capable
)
return
E_INVALIDARG
;
*
offload_capable
=
FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
AudioClient_SetClientProperties
(
IAudioClient2
*
iface
,
...
...
dlls/winepulse.drv/mmdevdrv.c
View file @
530c79fb
...
...
@@ -2233,9 +2233,14 @@ static HRESULT WINAPI AudioClient_IsOffloadCapable(IAudioClient2 *iface,
{
ACImpl
*
This
=
impl_from_IAudioClient2
(
iface
);
FIXM
E
(
"(%p)->(0x%x, %p)
\n
"
,
This
,
category
,
offload_capable
);
TRAC
E
(
"(%p)->(0x%x, %p)
\n
"
,
This
,
category
,
offload_capable
);
return
E_NOTIMPL
;
if
(
!
offload_capable
)
return
E_INVALIDARG
;
*
offload_capable
=
FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
AudioClient_SetClientProperties
(
IAudioClient2
*
iface
,
...
...
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