winebuild: Use strarray objects instead of pointers where possible.
[wine.git] / dlls / xaudio2_7 / x3daudio.c
bloba182852c19b2aa618274a0e16b97376621834c0c
1 /*
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
19 #include <stdarg.h>
21 #include "xaudio_private.h"
22 #include "x3daudio.h"
24 #include "wine/debug.h"
26 WINE_DEFAULT_DEBUG_CHANNEL(xaudio2);
28 #ifdef X3DAUDIO1_VER
29 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, void *pReserved)
31 TRACE("(%p, %d, %p)\n", hinstDLL, reason, pReserved);
33 switch (reason)
35 case DLL_WINE_PREATTACH:
36 return FALSE; /* prefer native version */
37 case DLL_PROCESS_ATTACH:
38 DisableThreadLibraryCalls( hinstDLL );
39 break;
41 return TRUE;
43 #endif /* X3DAUDIO1_VER */
45 #if XAUDIO2_VER >= 8
46 HRESULT CDECL X3DAudioInitialize(UINT32 chanmask, float speedofsound,
47 X3DAUDIO_HANDLE handle)
49 FIXME("0x%x, %f, %p: Stub!\n", chanmask, speedofsound, handle);
50 return S_OK;
52 #endif /* XAUDIO2_VER >= 8 */
54 #ifdef X3DAUDIO1_VER
55 void CDECL LEGACY_X3DAudioInitialize(UINT32 chanmask, float speedofsound,
56 X3DAUDIO_HANDLE handle)
58 FIXME("0x%x, %f, %p: Stub!\n", chanmask, speedofsound, handle);
60 #endif /* X3DAUDIO1_VER */
62 #if XAUDIO2_VER >= 8 || defined X3DAUDIO1_VER
63 void CDECL X3DAudioCalculate(const X3DAUDIO_HANDLE handle,
64 const X3DAUDIO_LISTENER *listener, const X3DAUDIO_EMITTER *emitter,
65 UINT32 flags, X3DAUDIO_DSP_SETTINGS *out)
67 static int once = 0;
68 if(!once){
69 FIXME("%p %p %p 0x%x %p: Stub!\n", handle, listener, emitter, flags, out);
70 ++once;
73 out->LPFDirectCoefficient = 0;
74 out->LPFReverbCoefficient = 0;
75 out->ReverbLevel = 0;
76 out->DopplerFactor = 1;
77 out->EmitterToListenerAngle = 0;
78 out->EmitterToListenerDistance = 0;
79 out->EmitterVelocityComponent = 0;
80 out->ListenerVelocityComponent = 0;
82 #endif /* XAUDIO2_VER >= 8 || defined X3DAUDIO1_VER */