dmime/tests: Check more notification / dirty messages fields.
[wine.git] / dlls / xaudio2_7 / x3daudio.c
blob0c40073905003f0402832fbd1cb1c6fc766084f2
1 /*
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
20 #include <stdarg.h>
22 #include "windef.h"
23 #include "winbase.h"
24 #include "x3daudio.h"
26 #include "wine/debug.h"
28 #include <F3DAudio.h>
30 #if XAUDIO2_VER >= 8 || defined X3DAUDIO1_VER
31 WINE_DEFAULT_DEBUG_CHANNEL(xaudio2);
32 #endif
34 #if XAUDIO2_VER >= 8
35 HRESULT CDECL X3DAudioInitialize(UINT32 chanmask, float speedofsound,
36 X3DAUDIO_HANDLE handle)
38 TRACE("0x%x, %f, %p\n", chanmask, speedofsound, handle);
39 return F3DAudioInitialize8(chanmask, speedofsound, handle);
41 #endif /* XAUDIO2_VER >= 8 */
43 #ifdef X3DAUDIO1_VER
44 #if X3DAUDIO1_VER <= 2
45 void WINAPI LEGACY_X3DAudioInitialize(UINT32 chanmask, float speedofsound,
46 X3DAUDIO_HANDLE handle)
47 #else
48 void CDECL LEGACY_X3DAudioInitialize(UINT32 chanmask, float speedofsound,
49 X3DAUDIO_HANDLE handle)
50 #endif
52 TRACE("0x%x, %f, %p\n", chanmask, speedofsound, handle);
53 F3DAudioInitialize(chanmask, speedofsound, handle);
55 #endif /* X3DAUDIO1_VER */
57 #if XAUDIO2_VER >= 8 || defined X3DAUDIO1_VER
58 #if defined(X3DAUDIO1_VER) && X3DAUDIO1_VER <= 2
59 void WINAPI LEGACY_X3DAudioCalculate(const X3DAUDIO_HANDLE handle,
60 const X3DAUDIO_LISTENER *listener, const X3DAUDIO_EMITTER *emitter,
61 UINT32 flags, X3DAUDIO_DSP_SETTINGS *out)
62 #else
63 void CDECL X3DAudioCalculate(const X3DAUDIO_HANDLE handle,
64 const X3DAUDIO_LISTENER *listener, const X3DAUDIO_EMITTER *emitter,
65 UINT32 flags, X3DAUDIO_DSP_SETTINGS *out)
66 #endif
68 TRACE("%p, %p, %p, 0x%x, %p\n", handle, listener, emitter, flags, out);
69 F3DAudioCalculate(
70 handle,
71 (const F3DAUDIO_LISTENER*) listener,
72 (const F3DAUDIO_EMITTER*) emitter,
73 flags,
74 (F3DAUDIO_DSP_SETTINGS*) out
77 #endif /* XAUDIO2_VER >= 8 || defined X3DAUDIO1_VER */