1 /* 2 * Copyright (c) 2007-2011 The Khronos Group Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a copy of 5 * this software and /or associated documentation files (the "Materials "), to 6 * deal in the Materials without restriction, including without limitation the 7 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 8 * sell copies of the Materials, and to permit persons to whom the Materials are 9 * furnished to do so, subject to 10 * the following conditions: 11 * 12 * The above copyright notice and this permission notice shall be included 13 * in all copies or substantial portions of the Materials. 14 * 15 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 * OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE 21 * MATERIALS. 22 * 23 * OpenSLES_Platform.h - OpenSL ES version 1.1 24 * 25 */ 26 27 /****************************************************************************/ 28 /* NOTE: This file contains definitions for the base types and the */ 29 /* SLAPIENTRY macro. This file **WILL NEED TO BE EDITED** to provide */ 30 /* the correct definitions specific to the platform being used. */ 31 /****************************************************************************/ 32 33 #ifndef _OPENSLES_PLATFORM_H_ 34 #define _OPENSLES_PLATFORM_H_ 35 36 typedef char sl_char_t; 37 typedef unsigned char sl_uint8_t; 38 typedef signed char sl_int8_t; 39 typedef unsigned short sl_uint16_t; 40 typedef signed short sl_int16_t; 41 typedef unsigned long sl_uint32_t; 42 typedef signed long sl_int32_t; 43 typedef float sl_float32_t; 44 typedef double sl_float64_t; 45 46 /****************************************************************************/ 47 /* NOTE: SL_BYTEORDER_NATIVEBIGENDIAN will cause SL_BYTEORDER_NATIVE to */ 48 /* mirror SL_BYTEORDER_BIGENDIAN, otherwise it will default to */ 49 /* SL_BYTEORDER_LITTLEENDIAN. */ 50 /****************************************************************************/ 51 //#define SL_BYTEORDER_NATIVEBIGENDIAN 1 52 53 /** SLAPIENTRY is a system-dependent API function prototype declaration macro. 54 * 55 * Example: 56 * #ifdef WIN32 57 * # define SLAPIENTRY __stdcall 58 * #endif 59 */ 60 #ifndef SLAPIENTRY 61 #define SLAPIENTRY /* override per-platform */ 62 #endif 63 64 /** The SL_API is a platform-specific macro used 65 * to declare OPENSL ES function prototypes. It is modified to meet the 66 * requirements for a particular platform 67 * 68 * Example: 69 * #ifdef __SYMBIAN32__ 70 * # define SL_API __declspec(dllimport) 71 * #endif 72 */ 73 #ifndef SL_API 74 #define SL_API /* override per-platform */ 75 #endif 76 77 #endif /* _OPENSLES_PLATFORM_H_ */ 78