dmime: Don't set DSBCAPS_CTRLPAN together with DSBCAPS_CTRL3D.
[wine.git] / include / x3daudio.h
bloba503507a40d8e60d0a1e7befb279b071706fa3e0
1 /*
2 * Copyright (c) 2015 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 #ifndef _X3DAUDIO_H
20 #define _X3DAUDIO_H
22 typedef struct X3DAUDIO_VECTOR {
23 float x, y, z;
24 } X3DAUDIO_VECTOR;
26 typedef struct X3DAUDIO_CONE {
27 float InnerAngle;
28 float OuterAngle;
29 float InnerVolume;
30 float OuterVolume;
31 float InnerLPF;
32 float OuterLPF;
33 float InnerReverb;
34 float OuterReverb;
35 } X3DAUDIO_CONE;
37 typedef struct X3DAUDIO_DISTANCE_CURVE_POINT {
38 float Distance;
39 float DSPSetting;
40 } X3DAUDIO_DISTANCE_CURVE_POINT;
42 typedef struct X3DAUDIO_DISTANCE_CURVE {
43 X3DAUDIO_DISTANCE_CURVE_POINT *pPoints;
44 UINT32 PointCount;
45 } X3DAUDIO_DISTANCE_CURVE;
47 typedef struct X3DAUDIO_LISTENER {
48 X3DAUDIO_VECTOR OrientFront;
49 X3DAUDIO_VECTOR OrientTop;
50 X3DAUDIO_VECTOR Position;
51 X3DAUDIO_VECTOR Velocity;
52 X3DAUDIO_CONE *pCone;
53 } X3DAUDIO_LISTENER;
55 typedef struct X3DAUDIO_EMITTER {
56 X3DAUDIO_CONE *pCone;
57 X3DAUDIO_VECTOR OrientFront;
58 X3DAUDIO_VECTOR OrientTop;
59 X3DAUDIO_VECTOR Position;
60 X3DAUDIO_VECTOR Velocity;
61 float InnerRadius;
62 float InnerRadiusAngle;
63 UINT32 ChannelCount;
64 float ChannelRadius;
65 float *pChannelAzimuths;
66 X3DAUDIO_DISTANCE_CURVE *pVolumeCurve;
67 X3DAUDIO_DISTANCE_CURVE *pLFECurve;
68 X3DAUDIO_DISTANCE_CURVE *pLPFDirectCurve;
69 X3DAUDIO_DISTANCE_CURVE *pLPFReverbCurve;
70 X3DAUDIO_DISTANCE_CURVE *pReverbCurve;
71 float CurveDistanceScalar;
72 float DopplerScalar;
73 } X3DAUDIO_EMITTER;
75 typedef struct X3DAUDIO_DSP_SETTINGS {
76 float *pMatrixCoefficients;
77 float *pDelayTimes;
78 UINT32 SrcChannelCount;
79 UINT32 DstChannelCount;
80 float LPFDirectCoefficient;
81 float LPFReverbCoefficient;
82 float ReverbLevel;
83 float DopplerFactor;
84 float EmitterToListenerAngle;
85 float EmitterToListenerDistance;
86 float EmitterVelocityComponent;
87 float ListenerVelocityComponent;
88 } X3DAUDIO_DSP_SETTINGS;
90 #define X3DAUDIO_HANDLE_BYTESIZE 20
91 typedef BYTE X3DAUDIO_HANDLE[X3DAUDIO_HANDLE_BYTESIZE];
93 HRESULT CDECL X3DAudioInitialize(UINT32, float, X3DAUDIO_HANDLE);
94 void CDECL X3DAudioCalculate(const X3DAUDIO_HANDLE, const X3DAUDIO_LISTENER *,
95 const X3DAUDIO_EMITTER *, UINT32, X3DAUDIO_DSP_SETTINGS *);
97 #endif