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
77a83bc4
Commit
77a83bc4
authored
Jun 01, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xaudio2: Move CreateAudioVolumeMeter() and CreateAudioReverb() to xapo.c.
parent
10700c04
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
36 deletions
+38
-36
xapo.c
dlls/xaudio2_7/xapo.c
+38
-0
xaudio_dll.c
dlls/xaudio2_7/xaudio_dll.c
+0
-36
No files found.
dlls/xaudio2_7/xapo.c
View file @
77a83bc4
...
...
@@ -409,3 +409,41 @@ HRESULT make_xapo_factory(REFCLSID clsid, REFIID riid, void **ppv)
HeapFree
(
GetProcessHeap
(),
0
,
ret
);
return
hr
;
}
#if XAUDIO2_VER >= 8
HRESULT
WINAPI
CreateAudioVolumeMeter
(
IUnknown
**
out
)
{
IClassFactory
*
cf
;
HRESULT
hr
;
TRACE
(
"%p
\n
"
,
out
);
hr
=
make_xapo_factory
(
&
CLSID_AudioVolumeMeter27
,
&
IID_IClassFactory
,
(
void
**
)
&
cf
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
IClassFactory_CreateInstance
(
cf
,
NULL
,
&
IID_IUnknown
,
(
void
**
)
out
);
IClassFactory_Release
(
cf
);
return
hr
;
}
HRESULT
WINAPI
CreateAudioReverb
(
IUnknown
**
out
)
{
IClassFactory
*
cf
;
HRESULT
hr
;
TRACE
(
"%p
\n
"
,
out
);
hr
=
make_xapo_factory
(
&
CLSID_AudioReverb27
,
&
IID_IClassFactory
,
(
void
**
)
&
cf
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
IClassFactory_CreateInstance
(
cf
,
NULL
,
&
IID_IUnknown
,
(
void
**
)
out
);
IClassFactory_Release
(
cf
);
return
hr
;
}
#endif
dlls/xaudio2_7/xaudio_dll.c
View file @
77a83bc4
...
...
@@ -1979,40 +1979,4 @@ HRESULT WINAPI XAudio2Create(IXAudio2 **ppxa2, UINT32 flags, XAUDIO2_PROCESSOR p
return
S_OK
;
}
HRESULT
WINAPI
CreateAudioVolumeMeter
(
IUnknown
**
out
)
{
IClassFactory
*
cf
;
HRESULT
hr
;
TRACE
(
"%p
\n
"
,
out
);
hr
=
make_xapo_factory
(
&
CLSID_AudioVolumeMeter27
,
&
IID_IClassFactory
,
(
void
**
)
&
cf
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
IClassFactory_CreateInstance
(
cf
,
NULL
,
&
IID_IUnknown
,
(
void
**
)
out
);
IClassFactory_Release
(
cf
);
return
hr
;
}
HRESULT
WINAPI
CreateAudioReverb
(
IUnknown
**
out
)
{
IClassFactory
*
cf
;
HRESULT
hr
;
TRACE
(
"%p
\n
"
,
out
);
hr
=
make_xapo_factory
(
&
CLSID_AudioReverb27
,
&
IID_IClassFactory
,
(
void
**
)
&
cf
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
IClassFactory_CreateInstance
(
cf
,
NULL
,
&
IID_IUnknown
,
(
void
**
)
out
);
IClassFactory_Release
(
cf
);
return
hr
;
}
#endif
/* XAUDIO2_VER >= 8 */
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