2 * Copyright (c) 2016 Andrew Eikum for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "xaudio_private.h"
24 #include "wine/debug.h"
26 #if XAUDIO2_VER >= 8 || defined X3DAUDIO1_VER
27 WINE_DEFAULT_DEBUG_CHANNEL(xaudio2
);
31 BOOL WINAPI
DllMain(HINSTANCE hinstDLL
, DWORD reason
, void *pReserved
)
33 TRACE("(%p, %d, %p)\n", hinstDLL
, reason
, pReserved
);
37 case DLL_WINE_PREATTACH
:
38 return FALSE
; /* prefer native version */
39 case DLL_PROCESS_ATTACH
:
40 DisableThreadLibraryCalls( hinstDLL
);
45 #endif /* X3DAUDIO1_VER */
48 HRESULT CDECL
X3DAudioInitialize(UINT32 chanmask
, float speedofsound
,
49 X3DAUDIO_HANDLE handle
)
51 FIXME("0x%x, %f, %p: Stub!\n", chanmask
, speedofsound
, handle
);
54 #endif /* XAUDIO2_VER >= 8 */
57 void CDECL
LEGACY_X3DAudioInitialize(UINT32 chanmask
, float speedofsound
,
58 X3DAUDIO_HANDLE handle
)
60 FIXME("0x%x, %f, %p: Stub!\n", chanmask
, speedofsound
, handle
);
62 #endif /* X3DAUDIO1_VER */
64 #if XAUDIO2_VER >= 8 || defined X3DAUDIO1_VER
65 void CDECL
X3DAudioCalculate(const X3DAUDIO_HANDLE handle
,
66 const X3DAUDIO_LISTENER
*listener
, const X3DAUDIO_EMITTER
*emitter
,
67 UINT32 flags
, X3DAUDIO_DSP_SETTINGS
*out
)
71 FIXME("%p %p %p 0x%x %p: Stub!\n", handle
, listener
, emitter
, flags
, out
);
75 out
->LPFDirectCoefficient
= 0;
76 out
->LPFReverbCoefficient
= 0;
78 out
->DopplerFactor
= 1;
79 out
->EmitterToListenerAngle
= 0;
80 out
->EmitterToListenerDistance
= 0;
81 out
->EmitterVelocityComponent
= 0;
82 out
->ListenerVelocityComponent
= 0;
84 #endif /* XAUDIO2_VER >= 8 || defined X3DAUDIO1_VER */