1523f5352Sopenharmony_ci/*
2523f5352Sopenharmony_ci * Copyright (c) 2007-2011 The Khronos Group Inc.
3523f5352Sopenharmony_ci *
4523f5352Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a copy of
5523f5352Sopenharmony_ci * this software and /or associated documentation files (the "Materials "), to
6523f5352Sopenharmony_ci * deal in the Materials without restriction, including without limitation the
7523f5352Sopenharmony_ci * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8523f5352Sopenharmony_ci * sell copies of the Materials, and to permit persons to whom the Materials are
9523f5352Sopenharmony_ci * furnished to do so, subject to
10523f5352Sopenharmony_ci * the following conditions:
11523f5352Sopenharmony_ci *
12523f5352Sopenharmony_ci * The above copyright notice and this permission notice shall be included
13523f5352Sopenharmony_ci * in all copies or substantial portions of the Materials.
14523f5352Sopenharmony_ci *
15523f5352Sopenharmony_ci * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16523f5352Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17523f5352Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18523f5352Sopenharmony_ci * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19523f5352Sopenharmony_ci * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20523f5352Sopenharmony_ci * OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE
21523f5352Sopenharmony_ci * MATERIALS.
22523f5352Sopenharmony_ci *
23523f5352Sopenharmony_ci * OpenSLES_Platform.h - OpenSL ES version 1.1
24523f5352Sopenharmony_ci *
25523f5352Sopenharmony_ci */
26523f5352Sopenharmony_ci
27523f5352Sopenharmony_ci/****************************************************************************/
28523f5352Sopenharmony_ci/* NOTE: This file contains definitions for the base types and the          */
29523f5352Sopenharmony_ci/* SLAPIENTRY macro. This file **WILL NEED TO BE EDITED** to provide        */
30523f5352Sopenharmony_ci/* the correct definitions specific to the platform being used.             */
31523f5352Sopenharmony_ci/****************************************************************************/
32523f5352Sopenharmony_ci
33523f5352Sopenharmony_ci#ifndef _OPENSLES_PLATFORM_H_
34523f5352Sopenharmony_ci#define _OPENSLES_PLATFORM_H_
35523f5352Sopenharmony_ci
36523f5352Sopenharmony_citypedef char                        sl_char_t;
37523f5352Sopenharmony_citypedef unsigned char               sl_uint8_t;
38523f5352Sopenharmony_citypedef signed char                 sl_int8_t;
39523f5352Sopenharmony_citypedef unsigned short              sl_uint16_t;
40523f5352Sopenharmony_citypedef signed short                sl_int16_t;
41523f5352Sopenharmony_citypedef unsigned long               sl_uint32_t;
42523f5352Sopenharmony_citypedef signed long                 sl_int32_t;
43523f5352Sopenharmony_citypedef float                       sl_float32_t;
44523f5352Sopenharmony_citypedef double                      sl_float64_t;
45523f5352Sopenharmony_ci
46523f5352Sopenharmony_ci/****************************************************************************/
47523f5352Sopenharmony_ci/* NOTE: SL_BYTEORDER_NATIVEBIGENDIAN will cause SL_BYTEORDER_NATIVE to     */
48523f5352Sopenharmony_ci/* mirror SL_BYTEORDER_BIGENDIAN, otherwise it will default to              */
49523f5352Sopenharmony_ci/* SL_BYTEORDER_LITTLEENDIAN.                                               */
50523f5352Sopenharmony_ci/****************************************************************************/
51523f5352Sopenharmony_ci//#define SL_BYTEORDER_NATIVEBIGENDIAN  1
52523f5352Sopenharmony_ci
53523f5352Sopenharmony_ci/** SLAPIENTRY is a system-dependent API function prototype declaration macro.
54523f5352Sopenharmony_ci*
55523f5352Sopenharmony_ci* Example:
56523f5352Sopenharmony_ci* #ifdef WIN32
57523f5352Sopenharmony_ci* # define SLAPIENTRY __stdcall
58523f5352Sopenharmony_ci* #endif
59523f5352Sopenharmony_ci*/
60523f5352Sopenharmony_ci#ifndef SLAPIENTRY
61523f5352Sopenharmony_ci#define SLAPIENTRY                 /* override per-platform */
62523f5352Sopenharmony_ci#endif
63523f5352Sopenharmony_ci
64523f5352Sopenharmony_ci/** The SL_API is a platform-specific macro used
65523f5352Sopenharmony_ci* to declare OPENSL ES function prototypes. It is modified to meet the
66523f5352Sopenharmony_ci* requirements for a particular platform
67523f5352Sopenharmony_ci*
68523f5352Sopenharmony_ci* Example:
69523f5352Sopenharmony_ci* #ifdef __SYMBIAN32__
70523f5352Sopenharmony_ci* # define SL_API __declspec(dllimport)
71523f5352Sopenharmony_ci* #endif
72523f5352Sopenharmony_ci*/
73523f5352Sopenharmony_ci#ifndef SL_API
74523f5352Sopenharmony_ci#define SL_API                      /* override per-platform */
75523f5352Sopenharmony_ci#endif
76523f5352Sopenharmony_ci
77523f5352Sopenharmony_ci#endif /* _OPENSLES_PLATFORM_H_ */
78