Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gabriel Ivăncescu
wine
Commits
c899cc82
Commit
c899cc82
authored
1 year ago
by
Davide Beatrici
Committed by
Alexandre Julliard
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
wineoss: Use mmdevapi's AudioClient2.
parent
1d8e1716
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/wineoss.drv/mmdevdrv.c
+9
-57
9 additions, 57 deletions
dlls/wineoss.drv/mmdevdrv.c
with
9 additions
and
57 deletions
dlls/wineoss.drv/mmdevdrv.c
+
9
−
57
View file @
c899cc82
...
...
@@ -941,63 +941,15 @@ static HRESULT WINAPI AudioClient_GetService(IAudioClient3 *iface, REFIID riid,
return
E_NOINTERFACE
;
}
static
HRESULT
WINAPI
AudioClient_IsOffloadCapable
(
IAudioClient3
*
iface
,
AUDIO_STREAM_CATEGORY
category
,
BOOL
*
offload_capable
)
{
ACImpl
*
This
=
impl_from_IAudioClient3
(
iface
);
TRACE
(
"(%p)->(0x%x, %p)
\n
"
,
This
,
category
,
offload_capable
);
if
(
!
offload_capable
)
return
E_INVALIDARG
;
*
offload_capable
=
FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
AudioClient_SetClientProperties
(
IAudioClient3
*
iface
,
const
AudioClientProperties
*
prop
)
{
ACImpl
*
This
=
impl_from_IAudioClient3
(
iface
);
const
Win8AudioClientProperties
*
legacy_prop
=
(
const
Win8AudioClientProperties
*
)
prop
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
prop
);
if
(
!
legacy_prop
)
return
E_POINTER
;
if
(
legacy_prop
->
cbSize
==
sizeof
(
AudioClientProperties
)){
TRACE
(
"{ bIsOffload: %u, eCategory: 0x%x, Options: 0x%x }
\n
"
,
legacy_prop
->
bIsOffload
,
legacy_prop
->
eCategory
,
prop
->
Options
);
}
else
if
(
legacy_prop
->
cbSize
==
sizeof
(
Win8AudioClientProperties
)){
TRACE
(
"{ bIsOffload: %u, eCategory: 0x%x }
\n
"
,
legacy_prop
->
bIsOffload
,
legacy_prop
->
eCategory
);
}
else
{
WARN
(
"Unsupported Size = %d
\n
"
,
legacy_prop
->
cbSize
);
return
E_INVALIDARG
;
}
if
(
legacy_prop
->
bIsOffload
)
return
AUDCLNT_E_ENDPOINT_OFFLOAD_NOT_CAPABLE
;
extern
HRESULT
WINAPI
client_IsOffloadCapable
(
IAudioClient3
*
iface
,
AUDIO_STREAM_CATEGORY
category
,
BOOL
*
offload_capable
);
return
S_OK
;
}
extern
HRESULT
WINAPI
client_SetClientProperties
(
IAudioClient3
*
iface
,
const
AudioClientProperties
*
prop
);
static
HRESULT
WINAPI
AudioC
lient_GetBufferSizeLimits
(
IAudioClient3
*
iface
,
extern
HRESULT
WINAPI
c
lient_GetBufferSizeLimits
(
IAudioClient3
*
iface
,
const
WAVEFORMATEX
*
format
,
BOOL
event_driven
,
REFERENCE_TIME
*
min_duration
,
REFERENCE_TIME
*
max_duration
)
{
ACImpl
*
This
=
impl_from_IAudioClient3
(
iface
);
FIXME
(
"(%p)->(%p, %u, %p, %p)
\n
"
,
This
,
format
,
event_driven
,
min_duration
,
max_duration
);
return
E_NOTIMPL
;
}
REFERENCE_TIME
*
max_duration
);
extern
HRESULT
WINAPI
client_GetSharedModeEnginePeriod
(
IAudioClient3
*
iface
,
const
WAVEFORMATEX
*
format
,
UINT32
*
default_period_frames
,
UINT32
*
unit_period_frames
,
...
...
@@ -1027,9 +979,9 @@ static const IAudioClient3Vtbl AudioClient3_Vtbl =
AudioClient_Reset
,
AudioClient_SetEventHandle
,
AudioClient_GetService
,
AudioC
lient_IsOffloadCapable
,
AudioC
lient_SetClientProperties
,
AudioC
lient_GetBufferSizeLimits
,
c
lient_IsOffloadCapable
,
c
lient_SetClientProperties
,
c
lient_GetBufferSizeLimits
,
client_GetSharedModeEnginePeriod
,
client_GetCurrentSharedModeEnginePeriod
,
client_InitializeSharedAudioStream
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment