Commit f9860002 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

xaudio2_8: Add 3D audio function stubs.

parent dd2c1446
...@@ -18000,7 +18000,7 @@ wine_fn_config_dll x3daudio1_3 enable_x3daudio1_3 ...@@ -18000,7 +18000,7 @@ wine_fn_config_dll x3daudio1_3 enable_x3daudio1_3
wine_fn_config_dll x3daudio1_4 enable_x3daudio1_4 wine_fn_config_dll x3daudio1_4 enable_x3daudio1_4
wine_fn_config_dll x3daudio1_5 enable_x3daudio1_5 wine_fn_config_dll x3daudio1_5 enable_x3daudio1_5
wine_fn_config_dll x3daudio1_6 enable_x3daudio1_6 wine_fn_config_dll x3daudio1_6 enable_x3daudio1_6
wine_fn_config_dll x3daudio1_7 enable_x3daudio1_7 implib wine_fn_config_dll x3daudio1_7 enable_x3daudio1_7
wine_fn_config_dll xapofx1_1 enable_xapofx1_1 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
wine_fn_config_dll xapofx1_2 enable_xapofx1_2 wine_fn_config_dll xapofx1_2 enable_xapofx1_2
wine_fn_config_dll xapofx1_3 enable_xapofx1_3 wine_fn_config_dll xapofx1_3 enable_xapofx1_3
...@@ -18015,7 +18015,7 @@ wine_fn_config_dll xaudio2_5 enable_xaudio2_5 clean ...@@ -18015,7 +18015,7 @@ wine_fn_config_dll xaudio2_5 enable_xaudio2_5 clean
wine_fn_config_dll xaudio2_6 enable_xaudio2_6 clean wine_fn_config_dll xaudio2_6 enable_xaudio2_6 clean
wine_fn_config_dll xaudio2_7 enable_xaudio2_7 clean wine_fn_config_dll xaudio2_7 enable_xaudio2_7 clean
wine_fn_config_test dlls/xaudio2_7/tests xaudio2_7_test wine_fn_config_test dlls/xaudio2_7/tests xaudio2_7_test
wine_fn_config_dll xaudio2_8 enable_xaudio2_8 wine_fn_config_dll xaudio2_8 enable_xaudio2_8 implib
wine_fn_config_dll xinput1_1 enable_xinput1_1 wine_fn_config_dll xinput1_1 enable_xinput1_1
wine_fn_config_dll xinput1_2 enable_xinput1_2 wine_fn_config_dll xinput1_2 enable_xinput1_2
wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
......
...@@ -3473,7 +3473,7 @@ WINE_CONFIG_DLL(x3daudio1_3) ...@@ -3473,7 +3473,7 @@ WINE_CONFIG_DLL(x3daudio1_3)
WINE_CONFIG_DLL(x3daudio1_4) WINE_CONFIG_DLL(x3daudio1_4)
WINE_CONFIG_DLL(x3daudio1_5) WINE_CONFIG_DLL(x3daudio1_5)
WINE_CONFIG_DLL(x3daudio1_6) WINE_CONFIG_DLL(x3daudio1_6)
WINE_CONFIG_DLL(x3daudio1_7,,[implib]) WINE_CONFIG_DLL(x3daudio1_7)
WINE_CONFIG_DLL(xapofx1_1) WINE_CONFIG_DLL(xapofx1_1)
WINE_CONFIG_DLL(xapofx1_2) WINE_CONFIG_DLL(xapofx1_2)
WINE_CONFIG_DLL(xapofx1_3) WINE_CONFIG_DLL(xapofx1_3)
...@@ -3488,7 +3488,7 @@ WINE_CONFIG_DLL(xaudio2_5,,[clean]) ...@@ -3488,7 +3488,7 @@ WINE_CONFIG_DLL(xaudio2_5,,[clean])
WINE_CONFIG_DLL(xaudio2_6,,[clean]) WINE_CONFIG_DLL(xaudio2_6,,[clean])
WINE_CONFIG_DLL(xaudio2_7,,[clean]) WINE_CONFIG_DLL(xaudio2_7,,[clean])
WINE_CONFIG_TEST(dlls/xaudio2_7/tests) WINE_CONFIG_TEST(dlls/xaudio2_7/tests)
WINE_CONFIG_DLL(xaudio2_8) WINE_CONFIG_DLL(xaudio2_8,,[implib])
WINE_CONFIG_DLL(xinput1_1) WINE_CONFIG_DLL(xinput1_1)
WINE_CONFIG_DLL(xinput1_2) WINE_CONFIG_DLL(xinput1_2)
WINE_CONFIG_DLL(xinput1_3,,[implib],[xinput]) WINE_CONFIG_DLL(xinput1_3,,[implib],[xinput])
......
@ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) x3daudio1_6.X3DAudioCalculate @ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) xaudio2_8.X3DAudioCalculate
@ cdecl X3DAudioInitialize(long float ptr) x3daudio1_6.X3DAudioInitialize @ cdecl X3DAudioInitialize(long float ptr) x3daudio1_7.X3DAudioInitialize
@ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) x3daudio1_6.X3DAudioCalculate @ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) xaudio2_8.X3DAudioCalculate
@ cdecl X3DAudioInitialize(long float ptr) x3daudio1_6.X3DAudioInitialize @ cdecl X3DAudioInitialize(long float ptr) x3daudio1_7.X3DAudioInitialize
@ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) x3daudio1_6.X3DAudioCalculate @ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) xaudio2_8.X3DAudioCalculate
@ cdecl X3DAudioInitialize(long float ptr) x3daudio1_6.X3DAudioInitialize @ cdecl X3DAudioInitialize(long float ptr) x3daudio1_7.X3DAudioInitialize
@ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) x3daudio1_6.X3DAudioCalculate @ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) xaudio2_8.X3DAudioCalculate
@ cdecl X3DAudioInitialize(long float ptr) x3daudio1_6.X3DAudioInitialize @ cdecl X3DAudioInitialize(long float ptr) x3daudio1_7.X3DAudioInitialize
@ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) x3daudio1_6.X3DAudioCalculate @ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) xaudio2_8.X3DAudioCalculate
@ cdecl X3DAudioInitialize(long float ptr) x3daudio1_6.X3DAudioInitialize @ cdecl X3DAudioInitialize(long float ptr) x3daudio1_7.X3DAudioInitialize
@ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) x3daudio1_6.X3DAudioCalculate @ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) xaudio2_8.X3DAudioCalculate
@ cdecl X3DAudioInitialize(long float ptr) x3daudio1_6.X3DAudioInitialize @ cdecl X3DAudioInitialize(long float ptr) x3daudio1_7.X3DAudioInitialize
MODULE = x3daudio1_6.dll MODULE = x3daudio1_6.dll
IMPORTS = x3daudio1_7
C_SRCS = \ C_SRCS = \
main.c main.c
...@@ -40,10 +40,3 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) ...@@ -40,10 +40,3 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return TRUE; return TRUE;
} }
void CDECL X3DA16_X3DAudioInitialize(UINT32 chanmask, float speedofsound,
X3DAUDIO_HANDLE handle)
{
/* forward to 1.7 */
X3DAudioInitialize(chanmask, speedofsound, handle);
}
@ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) x3daudio1_7.X3DAudioCalculate @ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) xaudio2_8.X3DAudioCalculate
@ cdecl X3DAudioInitialize(long float ptr) X3DA16_X3DAudioInitialize @ cdecl X3DAudioInitialize(long float ptr) x3daudio1_7.X3DAudioInitialize
MODULE = x3daudio1_7.dll MODULE = x3daudio1_7.dll
IMPORTLIB = x3daudio1_7 IMPORTS = xaudio2_8
C_SRCS = \ C_SRCS = \
main.c main.c
...@@ -40,29 +40,9 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) ...@@ -40,29 +40,9 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
return TRUE; return TRUE;
} }
HRESULT CDECL X3DAudioInitialize(UINT32 chanmask, float speedofsound, void CDECL X3DA17_X3DAudioInitialize(UINT32 chanmask, float speedofsound,
X3DAUDIO_HANDLE handle) X3DAUDIO_HANDLE handle)
{ {
FIXME("0x%x, %f, %p: Stub!\n", chanmask, speedofsound, handle); /* forward to xaudio2_8 */
return S_OK; X3DAudioInitialize(chanmask, speedofsound, handle);
}
void CDECL X3DAudioCalculate(const X3DAUDIO_HANDLE handle,
const X3DAUDIO_LISTENER *listener, const X3DAUDIO_EMITTER *emitter,
UINT32 flags, X3DAUDIO_DSP_SETTINGS *out)
{
static int once = 0;
if(!once){
FIXME("%p %p %p 0x%x %p: Stub!\n", handle, listener, emitter, flags, out);
++once;
}
out->LPFDirectCoefficient = 0;
out->LPFReverbCoefficient = 0;
out->ReverbLevel = 0;
out->DopplerFactor = 1;
out->EmitterToListenerAngle = 0;
out->EmitterToListenerDistance = 0;
out->EmitterVelocityComponent = 0;
out->ListenerVelocityComponent = 0;
} }
@ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) @ cdecl X3DAudioCalculate(ptr ptr ptr long ptr) xaudio2_8.X3DAudioCalculate
@ cdecl X3DAudioInitialize(long float ptr) @ cdecl X3DAudioInitialize(long float ptr) X3DA17_X3DAudioInitialize
MODULE = xaudio2_8.dll MODULE = xaudio2_8.dll
IMPORTLIB = xaudio2_8
IMPORTS = ole32 IMPORTS = ole32
C_SRCS = \ C_SRCS = \
......
...@@ -2,3 +2,5 @@ ...@@ -2,3 +2,5 @@
@ stdcall CreateAudioVolumeMeter(ptr) @ stdcall CreateAudioVolumeMeter(ptr)
@ stdcall CreateAudioReverb(ptr) @ stdcall CreateAudioReverb(ptr)
@ cdecl CreateFX(ptr ptr ptr long) @ cdecl CreateFX(ptr ptr ptr long)
@ cdecl X3DAudioCalculate(ptr ptr ptr long ptr)
@ cdecl X3DAudioInitialize(long float ptr)
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "xaudio2fx.h" #include "xaudio2fx.h"
#include "xapo.h" #include "xapo.h"
#include "xapofx.h" #include "xapofx.h"
#include "x3daudio.h"
WINE_DEFAULT_DEBUG_CHANNEL(xaudio2); WINE_DEFAULT_DEBUG_CHANNEL(xaudio2);
...@@ -130,3 +131,30 @@ HRESULT CDECL CreateFX(REFCLSID clsid, IUnknown **out, void *initdata, UINT32 in ...@@ -130,3 +131,30 @@ HRESULT CDECL CreateFX(REFCLSID clsid, IUnknown **out, void *initdata, UINT32 in
return S_OK; return S_OK;
} }
HRESULT CDECL X3DAudioInitialize(UINT32 chanmask, float speedofsound,
X3DAUDIO_HANDLE handle)
{
FIXME("0x%x, %f, %p: Stub!\n", chanmask, speedofsound, handle);
return S_OK;
}
void CDECL X3DAudioCalculate(const X3DAUDIO_HANDLE handle,
const X3DAUDIO_LISTENER *listener, const X3DAUDIO_EMITTER *emitter,
UINT32 flags, X3DAUDIO_DSP_SETTINGS *out)
{
static int once = 0;
if(!once){
FIXME("%p %p %p 0x%x %p: Stub!\n", handle, listener, emitter, flags, out);
++once;
}
out->LPFDirectCoefficient = 0;
out->LPFReverbCoefficient = 0;
out->ReverbLevel = 0;
out->DopplerFactor = 1;
out->EmitterToListenerAngle = 0;
out->EmitterToListenerDistance = 0;
out->EmitterVelocityComponent = 0;
out->ListenerVelocityComponent = 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment