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
a30a6172
Commit
a30a6172
authored
Aug 12, 2023
by
David McFarland
Committed by
Alexandre Julliard
Mar 07, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Implement IAudioClient3_GetSharedModeEnginePeriod.
For now min/max/default are all hard-coded to ~10ms.
parent
73a6f764
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
client.c
dlls/mmdevapi/client.c
+11
-4
render.c
dlls/mmdevapi/tests/render.c
+0
-1
No files found.
dlls/mmdevapi/client.c
View file @
a30a6172
...
...
@@ -929,10 +929,17 @@ static HRESULT WINAPI client_GetSharedModeEnginePeriod(IAudioClient3 *iface,
UINT32
*
max_period_frames
)
{
struct
audio_client
*
This
=
impl_from_IAudioClient3
(
iface
);
FIXME
(
"(%p)->(%p, %p, %p, %p, %p) - stub
\n
"
,
This
,
format
,
default_period_frames
,
unit_period_frames
,
min_period_frames
,
max_period_frames
);
return
E_NOTIMPL
;
FIXME
(
"(%p)->(%p, %p, %p, %p, %p) - partial stub
\n
"
,
This
,
format
,
default_period_frames
,
unit_period_frames
,
min_period_frames
,
max_period_frames
);
*
default_period_frames
=
*
min_period_frames
=
*
max_period_frames
=
format
->
nSamplesPerSec
/
100
;
/* ~10ms */
*
unit_period_frames
=
1
;
return
S_OK
;
}
static
HRESULT
WINAPI
client_GetCurrentSharedModeEnginePeriod
(
IAudioClient3
*
iface
,
...
...
dlls/mmdevapi/tests/render.c
View file @
a30a6172
...
...
@@ -346,7 +346,6 @@ static void test_audioclient(void)
hr
=
IAudioClient3_GetSharedModeEnginePeriod
(
ac3
,
pwfx
,
&
default_period
,
&
unit_period
,
&
min_period
,
&
max_period
);
todo_wine
ok
(
hr
==
S_OK
,
"GetSharedModeEnginePeriod returns %08lx
\n
"
,
hr
);
hr
=
IAudioClient3_InitializeSharedAudioStream
(
...
...
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