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
6e51e083
Commit
6e51e083
authored
Jul 08, 2022
by
Giovanni Mascellani
Committed by
Alexandre Julliard
Jul 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xactengine3_7: Forward wave bank notifications to the application.
Signed-off-by:
Giovanni Mascellani
<
gmascellani@codeweavers.com
>
parent
4be1dc1b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
192 additions
and
14 deletions
+192
-14
xact3.c
dlls/xactengine3_7/tests/xact3.c
+3
-2
xact_dll.c
dlls/xactengine3_7/xact_dll.c
+189
-12
No files found.
dlls/xactengine3_7/tests/xact3.c
View file @
6e51e083
...
...
@@ -172,6 +172,7 @@ static void WINAPI notification_cb(const XACT_NOTIFICATION *notification)
data
->
received
=
TRUE
;
ok
(
notification
->
type
==
data
->
type
,
"Unexpected notification type %u
\n
"
,
notification
->
type
);
todo_wine_if
(
notification
->
type
==
XACTNOTIFICATIONTYPE_WAVEBANKDESTROYED
)
ok
(
notification
->
waveBank
.
pWaveBank
==
data
->
wave_bank
,
"Unexpected wave bank %p instead of %p
\n
"
,
notification
->
waveBank
.
pWaveBank
,
data
->
wave_bank
);
ok
(
thread_id
==
data
->
thread_id
,
"Unexpected thread id %#lx instead of %#lx
\n
"
,
thread_id
,
data
->
thread_id
);
...
...
@@ -248,11 +249,11 @@ static void test_notifications(void)
ok
(
hr
==
S_OK
,
"Cannot query wave bank state, hr %#lx
\n
"
,
hr
);
ok
(
state
==
XACT_WAVEBANKSTATE_PREPARED
,
"Wave bank is not in prepared state, but in %#lx
\n
"
,
state
);
todo_wine
ok
(
prepared_data
.
received
,
"The 'wave bank prepared' notification was never received
\n
"
);
ok
(
prepared_data
.
received
,
"The 'wave bank prepared' notification was never received
\n
"
);
ok
(
!
destroyed_data
.
received
,
"The 'wave bank destroyed' notification was received too early
\n
"
);
IXACT3WaveBank_Destroy
(
prepared_data
.
wave_bank
);
todo_wine
ok
(
destroyed_data
.
received
,
"The 'wave bank destroyed' notification was never received
\n
"
);
ok
(
destroyed_data
.
received
,
"The 'wave bank destroyed' notification was never received
\n
"
);
CloseHandle
(
file
);
IXACT3Engine_Release
(
engine
);
...
...
dlls/xactengine3_7/xact_dll.c
View file @
6e51e083
This diff is collapsed.
Click to expand it.
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