2 * Copyright (c) 2016 Andrew Eikum for CodeWeavers
3 * Copyright (c) 2018 Ethan Lee for CodeWeavers
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
26 #include "wine/debug.h"
30 #if XAUDIO2_VER >= 8 || defined X3DAUDIO1_VER
31 WINE_DEFAULT_DEBUG_CHANNEL(xaudio2
);
35 BOOL WINAPI
DllMain(HINSTANCE hinstDLL
, DWORD reason
, void *pReserved
)
37 TRACE("(%p, %d, %p)\n", hinstDLL
, reason
, pReserved
);
41 case DLL_PROCESS_ATTACH
:
42 DisableThreadLibraryCalls( hinstDLL
);
47 #endif /* X3DAUDIO1_VER */
50 HRESULT CDECL
X3DAudioInitialize(UINT32 chanmask
, float speedofsound
,
51 X3DAUDIO_HANDLE handle
)
53 TRACE("0x%x, %f, %p\n", chanmask
, speedofsound
, handle
);
54 F3DAudioInitialize(chanmask
, speedofsound
, handle
);
57 #endif /* XAUDIO2_VER >= 8 */
60 void CDECL
LEGACY_X3DAudioInitialize(UINT32 chanmask
, float speedofsound
,
61 X3DAUDIO_HANDLE handle
)
63 TRACE("0x%x, %f, %p\n", chanmask
, speedofsound
, handle
);
64 F3DAudioInitialize(chanmask
, speedofsound
, handle
);
66 #endif /* X3DAUDIO1_VER */
68 #if XAUDIO2_VER >= 8 || defined X3DAUDIO1_VER
69 void CDECL
X3DAudioCalculate(const X3DAUDIO_HANDLE handle
,
70 const X3DAUDIO_LISTENER
*listener
, const X3DAUDIO_EMITTER
*emitter
,
71 UINT32 flags
, X3DAUDIO_DSP_SETTINGS
*out
)
73 TRACE("%p, %p, %p, 0x%x, %p\n", handle
, listener
, emitter
, flags
, out
);
76 (const F3DAUDIO_LISTENER
*) listener
,
77 (const F3DAUDIO_EMITTER
*) emitter
,
79 (F3DAUDIO_DSP_SETTINGS
*) out
82 #endif /* XAUDIO2_VER >= 8 || defined X3DAUDIO1_VER */