AWE Core OS 8.B.19 Documentation
StandardDefs.h
Go to the documentation of this file.
1/*******************************************************************************
2*
3* Audio Framework
4* ---------------
5*
6********************************************************************************
7* StandardDefs.h
8********************************************************************************
9*
10* Description: Standard Audio Weaver data types
11*
12* Copyright: (c) 2007-2021 DSP Concepts, Inc. All rights reserved.
13* 3235 Kifer Road
14* Santa Clara, CA 95054
15*
16*******************************************************************************/
21#ifndef STANDARD_DEFS_H_
22#define STANDARD_DEFS_H_
23
24// Do not define BOOL for these processor types
25#if defined(HMD) || defined(HIFI4) || defined(HIFIMINI)
26#define BOOL_DEFINED
27#endif
28
29#ifndef UINT32_DEFINED
30#define UINT32_DEFINED
31#ifndef UINT32
32//#define UINT32 unsigned int
33typedef unsigned int UINT32;
34#endif
35#endif
36
37#ifndef INT32_DEFINED
38#define INT32_DEFINED
39#ifndef INT32
40//#define INT32 int
41typedef int INT32;
42#endif
43#endif
44
45#if defined(__ADSP215xx__) && defined(__ADSPSHARC__)
46#ifndef BOOL
47#define BOOL bool
48#endif
49#else
50#ifndef BOOL
51#define BOOL INT32
52#endif
53#endif
54
55#ifndef MAXINT32
56#define MAXINT32 ((INT32)0x7fffffffUL)
57#endif
58
59#ifndef MININT32
60#define MININT32 ((INT32)~MAXINT32)
61#endif
62
63#ifndef UINT64_DEFINED
64#define UINT64_DEFINED
65#ifndef UINT64
66//#define UINT64 unsigned long long
67typedef unsigned long long UINT64;
68#endif
69#endif
70
71#ifndef INT64_DEFINED
72#define INT64_DEFINED
73#ifndef INT64
74//#define INT64 long long
75typedef long long INT64;
76#endif
77#endif
78
79#ifndef MAXINT64
80#define MAXINT64 ((INT64)0x7ffffffffffffffffULL)
81#endif
82
83#ifndef MININT64
84#define MININT64 ((INT64)~MAXINT64)
85#endif
86
87#ifndef FLOAT32_DEFINED
88#define FLOAT32_DEFINED
89#ifndef FLOAT32
90//#define FLOAT32 float
91typedef float FLOAT32;
92#endif
93#endif
94
95#ifndef USE_SINGLE_PREC
96#ifndef FLOAT64_DEFINED
97#define FLOAT64_DEFINED
98#ifndef FLOAT64
99#if defined(__ADSP21000__)
100typedef long double FLOAT64;
101#else
102typedef double FLOAT64;
103#endif
104#endif
105#endif
106#endif
107
108#ifndef INT16_DEFINED
109#define INT16_DEFINED
110#ifndef INT16
111//#define INT16 short
112typedef short INT16;
113#endif
114#endif
115
116#ifndef UINT16_DEFINED
117#define UINT16_DEFINED
118#ifndef UINT16
119//#define UINT16 unsigned short
120typedef unsigned short UINT16;
121#endif
122#endif
123
124#ifndef INT8_DEFINED
125#define INT8_DEFINED
126#ifndef INT8
127//#define INT8 signed char
128typedef signed char INT8;
129#endif
130#endif
131
132#ifndef UINT8_DEFINED
133#define UINT8_DEFINED
134#ifndef UINT8
135//#define UINT8 unsigned char
136typedef unsigned char UINT8;
137#endif
138#endif
139
140/* These definitions are needed for Linux */
141#ifndef INT_DEFINED
142#define INT_DEFINED
143#ifndef INT
144//#define INT int
145typedef int INT;
146#endif
147#endif
148
149#ifndef UINT
150#define UINT unsigned int
151#endif
152
153#ifndef BYTE_DEFINED
154#define BYTE_DEFINED
155#ifndef BYTE
156//#define BYTE unsigned char
157typedef unsigned char BYTE;
158#endif
159#endif
160
161#ifndef PBYTE
162#define PBYTE unsigned char *
163#endif
164
165#ifndef TRUE
166#define TRUE 1
167#endif
168
169#ifndef FALSE
170#define FALSE 0
171#endif
172
173#ifndef WORD
174#define WORD unsigned short
175#endif
176
177#ifndef PWORD
178#define PWORD unsigned short *
179#endif
180
181#ifndef DWORD
182#define DWORD unsigned long
183#endif
184
185#ifndef PDWORD
186#define PDWORD unsigned long *
187#endif
188
189#ifndef NUMOF
190#define NUMOF(x) (sizeof(x) / sizeof(*x))
191#endif
192
193#ifndef NULL
194#define NULL 0
195#endif
196
197#ifndef SUCCESS
198#define SUCCESS 1
199#endif
200
201#ifndef FAILURE
202#define FAILURE 0
203#endif
204
205#define PASTE(x, y) x ## y
206#define EVAL(x, y) PASTE(x, y)
207
208#ifndef FIXNAME
209#define FIXNAME(x) EVAL(MODULE_PREFIX, x)
210#endif
211
212#define AWE_UNUSED_VARIABLE(x) ((void)(x))
213
214#ifndef SAMPLETYPE_DEFINED
215#define SAMPLETYPE_DEFINED
219typedef enum _SampleType
220{
223
226
229
233#endif
234
235#ifndef DLLSYMBOL
236#define DLLSYMBOL
237#endif
238
239#ifndef CXX_NOWARN_DLLCLASSIF
240#define CXX_NOWARN_DLLCLASSIF
241#endif
242
243#ifndef CXX_RESTORE_DLLCLASSIF
244#define CXX_RESTORE_DLLCLASSIF
245#endif
246
247#endif // STANDARD_DEFS_H_
enum _SampleType SampleType
Type of data for I/O.
_SampleType
Type of data for I/O.
Definition: StandardDefs.h:220
@ Sample24bit_high
Data is 24 bit PCM aligned to the high bit in 32 bit buffers.
Definition: StandardDefs.h:228
@ Sample32bit
Data is 32 bit PCM .
Definition: StandardDefs.h:231
@ Sample16bit
Data is 16 bit PCM.
Definition: StandardDefs.h:222
@ Sample24bit_low
Data is 24 bit PCM aligned to the low bit in 32 bit buffers.
Definition: StandardDefs.h:225