wined3d: Allow using more than MAX_COMBINED_SAMPLERS texture image units.
[wine.git] / dlls / xaudio2_7 / x3daudio.c
blob58f7062ad689f74bc1197dc344fa54985c897d34
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 #if XAUDIO2_VER >= 8 || defined X3DAUDIO1_VER
27 WINE_DEFAULT_DEBUG_CHANNEL(xaudio2);
28 #endif
30 #ifdef X3DAUDIO1_VER
31 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, void *pReserved)
33 TRACE("(%p, %d, %p)\n", hinstDLL, reason, pReserved);
35 switch (reason)
37 case DLL_WINE_PREATTACH:
38 return FALSE; /* prefer native version */
39 case DLL_PROCESS_ATTACH:
40 DisableThreadLibraryCalls( hinstDLL );
41 break;
43 return TRUE;
45 #endif /* X3DAUDIO1_VER */
47 #if XAUDIO2_VER >= 8
48 HRESULT CDECL X3DAudioInitialize(UINT32 chanmask, float speedofsound,
49 X3DAUDIO_HANDLE handle)
51 FIXME("0x%x, %f, %p: Stub!\n", chanmask, speedofsound, handle);
52 return S_OK;
54 #endif /* XAUDIO2_VER >= 8 */
56 #ifdef X3DAUDIO1_VER
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)
69 static int once = 0;
70 if(!once){
71 FIXME("%p %p %p 0x%x %p: Stub!\n", handle, listener, emitter, flags, out);
72 ++once;
75 out->LPFDirectCoefficient = 0;
76 out->LPFReverbCoefficient = 0;
77 out->ReverbLevel = 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 */