Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0987d1b0
Commit
0987d1b0
authored
Sep 09, 2022
by
Davide Beatrici
Committed by
Alexandre Julliard
Sep 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Adapt "release_render_buffer_params" struct to mmdevapi's.
parent
9a30a71e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
coreaudio.c
dlls/winecoreaudio.drv/coreaudio.c
+7
-7
mmdevdrv.c
dlls/winecoreaudio.drv/mmdevdrv.c
+1
-1
unixlib.h
dlls/winecoreaudio.drv/unixlib.h
+2
-2
No files found.
dlls/winecoreaudio.drv/coreaudio.c
View file @
0987d1b0
...
...
@@ -1424,12 +1424,12 @@ static NTSTATUS unix_release_render_buffer(void *args)
OSSpinLockLock
(
&
stream
->
lock
);
if
(
!
params
->
frames
){
if
(
!
params
->
written_
frames
){
stream
->
getbuf_last
=
0
;
params
->
result
=
S_OK
;
}
else
if
(
!
stream
->
getbuf_last
)
params
->
result
=
AUDCLNT_E_OUT_OF_ORDER
;
else
if
(
params
->
frames
>
(
stream
->
getbuf_last
>=
0
?
stream
->
getbuf_last
:
-
stream
->
getbuf_last
))
else
if
(
params
->
written_
frames
>
(
stream
->
getbuf_last
>=
0
?
stream
->
getbuf_last
:
-
stream
->
getbuf_last
))
params
->
result
=
AUDCLNT_E_INVALID_SIZE
;
else
{
if
(
stream
->
getbuf_last
>=
0
)
...
...
@@ -1438,18 +1438,18 @@ static NTSTATUS unix_release_render_buffer(void *args)
buffer
=
stream
->
tmp_buffer
;
if
(
params
->
flags
&
AUDCLNT_BUFFERFLAGS_SILENT
)
silence_buffer
(
stream
,
buffer
,
params
->
frames
);
silence_buffer
(
stream
,
buffer
,
params
->
written_
frames
);
if
(
stream
->
getbuf_last
<
0
)
ca_wrap_buffer
(
stream
->
local_buffer
,
stream
->
wri_offs_frames
*
stream
->
fmt
->
nBlockAlign
,
stream
->
bufsize_frames
*
stream
->
fmt
->
nBlockAlign
,
buffer
,
params
->
frames
*
stream
->
fmt
->
nBlockAlign
);
buffer
,
params
->
written_
frames
*
stream
->
fmt
->
nBlockAlign
);
stream
->
wri_offs_frames
+=
params
->
frames
;
stream
->
wri_offs_frames
+=
params
->
written_
frames
;
stream
->
wri_offs_frames
%=
stream
->
bufsize_frames
;
stream
->
held_frames
+=
params
->
frames
;
stream
->
written_frames
+=
params
->
frames
;
stream
->
held_frames
+=
params
->
written_
frames
;
stream
->
written_frames
+=
params
->
written_
frames
;
stream
->
getbuf_last
=
0
;
params
->
result
=
S_OK
;
...
...
dlls/winecoreaudio.drv/mmdevdrv.c
View file @
0987d1b0
...
...
@@ -1285,7 +1285,7 @@ static HRESULT WINAPI AudioRenderClient_ReleaseBuffer(
TRACE
(
"(%p)->(%u, %lx)
\n
"
,
This
,
frames
,
flags
);
params
.
stream
=
This
->
stream
;
params
.
frames
=
frames
;
params
.
written_
frames
=
frames
;
params
.
flags
=
flags
;
UNIX_CALL
(
release_render_buffer
,
&
params
);
return
params
.
result
;
...
...
dlls/winecoreaudio.drv/unixlib.h
View file @
0987d1b0
...
...
@@ -88,8 +88,8 @@ struct get_render_buffer_params
struct
release_render_buffer_params
{
stream_handle
stream
;
UINT32
frames
;
DWORD
flags
;
UINT32
written_
frames
;
UINT
flags
;
HRESULT
result
;
};
...
...
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