alctypes.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. #ifndef _ALCTYPES_H_
  2. #define _ALCTYPES_H_
  3. /**
  4. * OpenAL cross platform audio library
  5. * Copyright (C) 1999-2000 by authors.
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Library General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Library General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Library General Public
  17. * License along with this library; if not, write to the
  18. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19. * Boston, MA 02111-1307, USA.
  20. * Or go to http://www.gnu.org/copyleft/lgpl.html
  21. */
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /** ALC boolean type. */
  26. typedef char ALCboolean;
  27. /** ALC 8bit signed byte. */
  28. typedef char ALCbyte;
  29. /** ALC 8bit unsigned byte. */
  30. typedef unsigned char ALCubyte;
  31. /** ALC 16bit signed short integer type. */
  32. typedef short ALCshort;
  33. /** ALC 16bit unsigned short integer type. */
  34. typedef unsigned short ALCushort;
  35. /** ALC 32bit unsigned integer type. */
  36. typedef unsigned ALCuint;
  37. /** ALC 32bit signed integer type. */
  38. typedef int ALCint;
  39. /** ALC 32bit floating point type. */
  40. typedef float ALCfloat;
  41. /** ALC 64bit double point type. */
  42. typedef double ALCdouble;
  43. /** ALC 32bit type. */
  44. typedef unsigned int ALCsizei;
  45. /** ALC void type */
  46. typedef void ALCvoid;
  47. /** ALC enumerations. */
  48. typedef int ALCenum;
  49. /* Bad value. */
  50. #define ALC_INVALID (-1)
  51. /* Boolean False. */
  52. #define ALC_FALSE 0
  53. /* Boolean True. */
  54. #define ALC_TRUE 1
  55. /** Errors: No Error. */
  56. #define ALC_NO_ERROR ALC_FALSE
  57. #define ALC_MAJOR_VERSION 0x1000
  58. #define ALC_MINOR_VERSION 0x1001
  59. #define ALC_ATTRIBUTES_SIZE 0x1002
  60. #define ALC_ALL_ATTRIBUTES 0x1003
  61. #define ALC_DEFAULT_DEVICE_SPECIFIER 0x1004
  62. #define ALC_DEVICE_SPECIFIER 0x1005
  63. #define ALC_EXTENSIONS 0x1006
  64. #define ALC_FREQUENCY 0x1007
  65. #define ALC_REFRESH 0x1008
  66. #define ALC_SYNC 0x1009
  67. /**
  68. * The device argument does not name a valid dvice.
  69. */
  70. #define ALC_INVALID_DEVICE 0xA001
  71. /**
  72. * The context argument does not name a valid context.
  73. */
  74. #define ALC_INVALID_CONTEXT 0xA002
  75. /**
  76. * A function was called at inappropriate time,
  77. * or in an inappropriate way, causing an illegal state.
  78. * This can be an incompatible ALenum, object ID,
  79. * and/or function.
  80. */
  81. #define ALC_INVALID_ENUM 0xA003
  82. /**
  83. * Illegal value passed as an argument to an AL call.
  84. * Applies to parameter values, but not to enumerations.
  85. */
  86. #define ALC_INVALID_VALUE 0xA004
  87. /**
  88. * A function could not be completed,
  89. * because there is not enough memory available.
  90. */
  91. #define ALC_OUT_OF_MEMORY 0xA005
  92. #ifdef __cplusplus
  93. }
  94. #endif
  95. #endif