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
8b65074d
Commit
8b65074d
authored
Jul 21, 2022
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Aug 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xactengine3_7: Map IXACT3Cue interfaces.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
parent
33831cfc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
xact_dll.c
dlls/xactengine3_7/xact_dll.c
+21
-0
No files found.
dlls/xactengine3_7/xact_dll.c
View file @
8b65074d
...
...
@@ -144,6 +144,7 @@ static HRESULT wrapper_add_entry(XACT3EngineImpl *engine, void *fact, void *xact
typedef
struct
_XACT3CueImpl
{
IXACT3Cue
IXACT3Cue_iface
;
FACTCue
*
fact_cue
;
XACT3EngineImpl
*
engine
;
}
XACT3CueImpl
;
static
inline
XACT3CueImpl
*
impl_from_IXACT3Cue
(
IXACT3Cue
*
iface
)
...
...
@@ -188,6 +189,7 @@ static HRESULT WINAPI IXACT3CueImpl_Destroy(IXACT3Cue *iface)
ret
=
FACTCue_Destroy
(
This
->
fact_cue
);
if
(
ret
!=
0
)
WARN
(
"FACTCue_Destroy returned %d
\n
"
,
ret
);
wrapper_remove_entry
(
This
->
engine
,
This
->
fact_cue
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
S_OK
;
}
...
...
@@ -395,6 +397,7 @@ static HRESULT WINAPI IXACT3SoundBankImpl_Prepare(IXACT3SoundBank *iface,
XACT3CueImpl
*
cue
;
FACTCue
*
fcue
;
UINT
ret
;
HRESULT
hr
;
TRACE
(
"(%p)->(%u, 0x%lx, %lu, %p)
\n
"
,
This
,
nCueIndex
,
dwFlags
,
timeOffset
,
ppCue
);
...
...
@@ -415,8 +418,17 @@ static HRESULT WINAPI IXACT3SoundBankImpl_Prepare(IXACT3SoundBank *iface,
return
E_OUTOFMEMORY
;
}
hr
=
wrapper_add_entry
(
This
->
engine
,
fcue
,
&
cue
->
IXACT3Cue_iface
);
if
(
FAILED
(
hr
))
{
FACTCue_Destroy
(
fcue
);
HeapFree
(
GetProcessHeap
(),
0
,
cue
);
return
hr
;
}
cue
->
IXACT3Cue_iface
.
lpVtbl
=
&
XACT3Cue_Vtbl
;
cue
->
fact_cue
=
fcue
;
cue
->
engine
=
This
->
engine
;
*
ppCue
=
&
cue
->
IXACT3Cue_iface
;
TRACE
(
"Created Cue: %p
\n
"
,
cue
);
...
...
@@ -457,8 +469,17 @@ static HRESULT WINAPI IXACT3SoundBankImpl_Play(IXACT3SoundBank *iface,
return
E_OUTOFMEMORY
;
}
hr
=
wrapper_add_entry
(
This
->
engine
,
fcue
,
&
cue
->
IXACT3Cue_iface
);
if
(
FAILED
(
hr
))
{
FACTCue_Destroy
(
fcue
);
HeapFree
(
GetProcessHeap
(),
0
,
cue
);
return
hr
;
}
cue
->
IXACT3Cue_iface
.
lpVtbl
=
&
XACT3Cue_Vtbl
;
cue
->
fact_cue
=
fcue
;
cue
->
engine
=
This
->
engine
;
*
ppCue
=
&
cue
->
IXACT3Cue_iface
;
}
...
...
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