Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
9ad4d348
Commit
9ad4d348
authored
Aug 15, 2020
by
Alistair Leslie-Hughes
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xactengine3_7: Implement IXACT3Engine PrepareStreamingWave
parent
5004b2b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
2 deletions
+53
-2
xact_dll.c
dlls/xactengine3_7/xact_dll.c
+53
-2
No files found.
dlls/xactengine3_7/xact_dll.c
View file @
9ad4d348
...
...
@@ -1241,8 +1241,59 @@ static HRESULT WINAPI IXACT3EngineImpl_PrepareStreamingWave(IXACT3Engine *iface,
IXACT3Wave
**
ppWave
)
{
XACT3EngineImpl
*
This
=
impl_from_IXACT3Engine
(
iface
);
FIXME
(
"(%p): stub!
\n
"
,
This
);
return
E_NOTIMPL
;
XACT3WaveImpl
*
wave
;
FACTWave
*
fwave
=
NULL
;
FACTStreamingParameters
fakeParms
;
wrap_readfile_struct
*
fake
;
FACTWaveBankEntry
fact_wavebank
;
UINT
ret
;
TRACE
(
"(%p)->(0x%08lx, %p, %p, %ld, %p, %ld, %d, %p)
\n
"
,
This
,
dwFlags
,
&
entry
,
&
streamingParams
,
dwAlignment
,
pdwSeekTable
,
dwPlayOffset
,
nLoopCount
,
ppWave
);
fake
=
(
wrap_readfile_struct
*
)
CoTaskMemAlloc
(
sizeof
(
wrap_readfile_struct
));
fake
->
engine
=
This
;
fake
->
file
=
streamingParams
.
file
;
fakeParms
.
file
=
fake
;
fakeParms
.
flags
=
streamingParams
.
flags
;
fakeParms
.
offset
=
streamingParams
.
offset
;
fakeParms
.
packetSize
=
streamingParams
.
packetSize
;
fact_wavebank
.
dwFlagsAndDuration
=
entry
.
dwFlagsAndDuration
;
fact_wavebank
.
Format
.
dwValue
=
entry
.
Format
.
dwValue
;
fact_wavebank
.
PlayRegion
.
dwOffset
=
entry
.
PlayRegion
.
dwOffset
;
fact_wavebank
.
PlayRegion
.
dwLength
=
entry
.
PlayRegion
.
dwLength
;
fact_wavebank
.
LoopRegion
.
dwStartSample
=
entry
.
LoopRegion
.
dwStartSample
;
fact_wavebank
.
LoopRegion
.
dwTotalSamples
=
entry
.
LoopRegion
.
dwTotalSamples
;
/* FAudio Prototype is incorrect and shouldn't take a buffer as an parameter,
* passing through NULL to ensure it's not used.
*/
ret
=
FACTAudioEngine_PrepareStreamingWave
(
This
->
fact_engine
,
dwFlags
,
fact_wavebank
,
fakeParms
,
dwAlignment
,
(
uint32_t
*
)
pdwSeekTable
,
NULL
,
dwPlayOffset
,
nLoopCount
,
&
fwave
);
if
(
ret
!=
0
||
!
fwave
)
{
ERR
(
"Failed to CreateWave: %d (%p)
\n
"
,
ret
,
fwave
);
return
E_FAIL
;
}
wave
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
wave
));
if
(
!
wave
)
{
FACTWave_Destroy
(
fwave
);
ERR
(
"Failed to allocate XACT3WaveImpl!"
);
return
E_OUTOFMEMORY
;
}
wave
->
IXACT3Wave_iface
.
lpVtbl
=
&
XACT3Wave_Vtbl
;
wave
->
fact_wave
=
fwave
;
*
ppWave
=
&
wave
->
IXACT3Wave_iface
;
TRACE
(
"Created Wave: %p
\n
"
,
wave
);
return
S_OK
;
}
static
HRESULT
WINAPI
IXACT3EngineImpl_PrepareWave
(
IXACT3Engine
*
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