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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
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
Matheus-TestUser1
wine
Commits
786c3a0a
Commit
786c3a0a
authored
1 year ago
by
Davide Beatrici
Committed by
Alexandre Julliard
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
winecoreaudio: Use mmdevapi's AudioClient's GetCurrentPadding, GetStreamLatency, GetBufferSize.
parent
896855c5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/winecoreaudio.drv/mmdevdrv.c
+9
-60
9 additions, 60 deletions
dlls/winecoreaudio.drv/mmdevdrv.c
with
9 additions
and
60 deletions
dlls/winecoreaudio.drv/mmdevdrv.c
+
9
−
60
View file @
786c3a0a
...
...
@@ -636,65 +636,14 @@ end:
return
params
.
result
;
}
static
HRESULT
WINAPI
AudioClient_GetBufferSize
(
IAudioClient3
*
iface
,
UINT32
*
frames
)
{
ACImpl
*
This
=
impl_from_IAudioClient3
(
iface
);
struct
get_buffer_size_params
params
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
frames
);
if
(
!
frames
)
return
E_POINTER
;
if
(
!
This
->
stream
)
return
AUDCLNT_E_NOT_INITIALIZED
;
params
.
stream
=
This
->
stream
;
params
.
frames
=
frames
;
UNIX_CALL
(
get_buffer_size
,
&
params
);
return
params
.
result
;
}
static
HRESULT
WINAPI
AudioClient_GetStreamLatency
(
IAudioClient3
*
iface
,
REFERENCE_TIME
*
out
)
{
ACImpl
*
This
=
impl_from_IAudioClient3
(
iface
);
struct
get_latency_params
params
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
out
);
if
(
!
out
)
return
E_POINTER
;
if
(
!
This
->
stream
)
return
AUDCLNT_E_NOT_INITIALIZED
;
params
.
stream
=
This
->
stream
;
params
.
latency
=
out
;
UNIX_CALL
(
get_latency
,
&
params
);
return
params
.
result
;
}
extern
HRESULT
WINAPI
client_GetBufferSize
(
IAudioClient3
*
iface
,
UINT32
*
frames
);
static
HRESULT
WINAPI
AudioClient_GetCurrentPadding
(
IAudioClient3
*
iface
,
UINT32
*
numpad
)
{
ACImpl
*
This
=
impl_from_IAudioClient3
(
iface
);
struct
get_current_padding_params
params
;
extern
HRESULT
WINAPI
client_GetStreamLatency
(
IAudioClient3
*
iface
,
REFERENCE_TIME
*
out
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
numpad
);
if
(
!
numpad
)
return
E_POINTER
;
if
(
!
This
->
stream
)
return
AUDCLNT_E_NOT_INITIALIZED
;
params
.
stream
=
This
->
stream
;
params
.
padding
=
numpad
;
UNIX_CALL
(
get_current_padding
,
&
params
);
return
params
.
result
;
}
extern
HRESULT
WINAPI
client_GetCurrentPadding
(
IAudioClient3
*
iface
,
UINT32
*
numpad
);
extern
HRESULT
WINAPI
client_IsFormatSupported
(
IAudioClient3
*
iface
,
AUDCLNT_SHAREMODE
mode
,
const
WAVEFORMATEX
*
pwfx
,
...
...
@@ -745,9 +694,9 @@ static const IAudioClient3Vtbl AudioClient3_Vtbl =
AudioClient_AddRef
,
AudioClient_Release
,
AudioClient_Initialize
,
AudioC
lient_GetBufferSize
,
AudioC
lient_GetStreamLatency
,
AudioC
lient_GetCurrentPadding
,
c
lient_GetBufferSize
,
c
lient_GetStreamLatency
,
c
lient_GetCurrentPadding
,
client_IsFormatSupported
,
client_GetMixFormat
,
client_GetDevicePeriod
,
...
...
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