| 1 |
/* |
| 2 |
* Copyright (c) 2015 Andrew Eikum |
| 3 |
* |
| 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. |
| 8 |
* |
| 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. |
| 13 |
* |
| 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 |
| 17 |
*/ |
| 18 |
|
| 19 |
import "unknwn.idl"; |
| 20 |
|
| 21 |
#ifndef XAUDIO2_VER |
| 22 |
#define XAUDIO2_VER 9 |
| 23 |
#endif |
| 24 |
|
| 25 |
#if XAUDIO2_VER < 8 |
| 26 |
[ |
| 27 |
threading(both), |
| 28 |
#if XAUDIO2_VER == 0 |
| 29 |
uuid(c0c56f46-29b1-44e9-9939-a32ce86867e2) |
| 30 |
#elif XAUDIO2_VER == 1 |
| 31 |
uuid(c1e3f122-a2ea-442c-854f-20d98f8357a1) |
| 32 |
#elif XAUDIO2_VER == 2 |
| 33 |
uuid(f5ca7b34-8055-42c0-b836-216129eb7e30) |
| 34 |
#elif XAUDIO2_VER == 3 |
| 35 |
uuid(e180344b-ac83-4483-959e-18a5c56a5e19) |
| 36 |
#elif XAUDIO2_VER == 4 |
| 37 |
uuid(c7338b95-52b8-4542-aa79-42eb016c8c1c) |
| 38 |
#elif XAUDIO2_VER == 5 |
| 39 |
uuid(2139e6da-c341-4774-9ac3-b4e026347f64) |
| 40 |
#elif XAUDIO2_VER == 6 |
| 41 |
uuid(e48c5a3f-93ef-43bb-a092-2c7ceb946f27) |
| 42 |
#else |
| 43 |
uuid(cac1105f-619b-4d04-831a-44e1cbf12d57) |
| 44 |
#endif |
| 45 |
] |
| 46 |
coclass AudioVolumeMeter {} |
| 47 |
|
| 48 |
[ |
| 49 |
threading(both), |
| 50 |
#if XAUDIO2_VER == 0 |
| 51 |
uuid(6f6ea3a9-2cf5-41cf-91c1-2170b1540063) |
| 52 |
#elif XAUDIO2_VER == 1 |
| 53 |
uuid(f4769300-b949-4df9-b333-00d33932e9a6) |
| 54 |
#elif XAUDIO2_VER == 2 |
| 55 |
uuid(629cf0de-3ecc-41e7-9926-f7e43eebec51) |
| 56 |
#elif XAUDIO2_VER == 3 |
| 57 |
uuid(9cab402c-1d37-44b4-886d-fa4f36170a4c) |
| 58 |
#elif XAUDIO2_VER == 4 |
| 59 |
uuid(8bb7778b-645b-4475-9a73-1de3170bd3af) |
| 60 |
#elif XAUDIO2_VER == 5 |
| 61 |
uuid(d06df0d0-8518-441e-822f-5451d5c595b8) |
| 62 |
#elif XAUDIO2_VER == 6 |
| 63 |
uuid(cecec95a-d894-491a-bee3-5e106fb59f2d) |
| 64 |
#else |
| 65 |
uuid(6a93130e-1d53-41d1-a9cf-e758800bb179) |
| 66 |
#endif |
| 67 |
] |
| 68 |
coclass AudioReverb {} |
| 69 |
|
| 70 |
#else |
| 71 |
|
| 72 |
HRESULT __stdcall CreateAudioReverb(IUnknown **out); |
| 73 |
HRESULT __stdcall CreateAudioVolumeMeter(IUnknown **out); |
| 74 |
|
| 75 |
#endif |