inprogext.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #ifndef INPROGEXT_H
  2. #define INPROGEXT_H
  3. /* NOLINTBEGIN */
  4. #include "AL/al.h"
  5. #include "AL/alc.h"
  6. #include "AL/alext.h"
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. #ifndef AL_SOFT_map_buffer
  11. #define AL_SOFT_map_buffer 1
  12. typedef unsigned int ALbitfieldSOFT;
  13. #define AL_MAP_READ_BIT_SOFT 0x00000001
  14. #define AL_MAP_WRITE_BIT_SOFT 0x00000002
  15. #define AL_MAP_PERSISTENT_BIT_SOFT 0x00000004
  16. #define AL_PRESERVE_DATA_BIT_SOFT 0x00000008
  17. typedef void (AL_APIENTRY*LPALBUFFERSTORAGESOFT)(ALuint buffer, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq, ALbitfieldSOFT flags) AL_API_NOEXCEPT17;
  18. typedef void* (AL_APIENTRY*LPALMAPBUFFERSOFT)(ALuint buffer, ALsizei offset, ALsizei length, ALbitfieldSOFT access) AL_API_NOEXCEPT17;
  19. typedef void (AL_APIENTRY*LPALUNMAPBUFFERSOFT)(ALuint buffer) AL_API_NOEXCEPT17;
  20. typedef void (AL_APIENTRY*LPALFLUSHMAPPEDBUFFERSOFT)(ALuint buffer, ALsizei offset, ALsizei length) AL_API_NOEXCEPT17;
  21. typedef void (AL_APIENTRY*LPALBUFFERSTORAGEDIRECTSOFT)(ALCcontext *context, ALuint buffer, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq, ALbitfieldSOFT flags) AL_API_NOEXCEPT17;
  22. typedef void* (AL_APIENTRY*LPALMAPBUFFERDIRECTSOFT)(ALCcontext *context, ALuint buffer, ALsizei offset, ALsizei length, ALbitfieldSOFT access) AL_API_NOEXCEPT17;
  23. typedef void (AL_APIENTRY*LPALUNMAPBUFFERDIRECTSOFT)(ALCcontext *context, ALuint buffer) AL_API_NOEXCEPT17;
  24. typedef void (AL_APIENTRY*LPALFLUSHMAPPEDBUFFERDIRECTSOFT)(ALCcontext *context, ALuint buffer, ALsizei offset, ALsizei length) AL_API_NOEXCEPT17;
  25. #ifdef AL_ALEXT_PROTOTYPES
  26. AL_API void AL_APIENTRY alBufferStorageSOFT(ALuint buffer, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq, ALbitfieldSOFT flags) AL_API_NOEXCEPT;
  27. AL_API void* AL_APIENTRY alMapBufferSOFT(ALuint buffer, ALsizei offset, ALsizei length, ALbitfieldSOFT access) AL_API_NOEXCEPT;
  28. AL_API void AL_APIENTRY alUnmapBufferSOFT(ALuint buffer) AL_API_NOEXCEPT;
  29. AL_API void AL_APIENTRY alFlushMappedBufferSOFT(ALuint buffer, ALsizei offset, ALsizei length) AL_API_NOEXCEPT;
  30. void AL_APIENTRY alBufferStorageDirectSOFT(ALCcontext *context, ALuint buffer, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq, ALbitfieldSOFT flags) AL_API_NOEXCEPT;
  31. void* AL_APIENTRY alMapBufferDirectSOFT(ALCcontext *context, ALuint buffer, ALsizei offset, ALsizei length, ALbitfieldSOFT access) AL_API_NOEXCEPT;
  32. void AL_APIENTRY alUnmapBufferDirectSOFT(ALCcontext *context, ALuint buffer) AL_API_NOEXCEPT;
  33. void AL_APIENTRY alFlushMappedBufferDirectSOFT(ALCcontext *context, ALuint buffer, ALsizei offset, ALsizei length) AL_API_NOEXCEPT;
  34. #endif
  35. #endif
  36. #ifndef AL_SOFT_bformat_hoa
  37. #define AL_SOFT_bformat_hoa
  38. #define AL_UNPACK_AMBISONIC_ORDER_SOFT 0x199D
  39. #endif
  40. #ifndef AL_SOFT_convolution_effect
  41. #define AL_SOFT_convolution_effect
  42. #define AL_EFFECT_CONVOLUTION_SOFT 0xA000
  43. #define AL_CONVOLUTION_ORIENTATION_SOFT 0x100F /* same as AL_ORIENTATION */
  44. #define AL_EFFECTSLOT_STATE_SOFT 0x199E
  45. #endif
  46. #ifndef AL_SOFT_hold_on_disconnect
  47. #define AL_SOFT_hold_on_disconnect
  48. #define AL_STOP_SOURCES_ON_DISCONNECT_SOFT 0x19AB
  49. #endif
  50. #ifndef AL_EXT_32bit_formats
  51. #define AL_EXT_32bit_formats
  52. #define AL_FORMAT_MONO_I32 0x19DB
  53. #define AL_FORMAT_STEREO_I32 0x19DC
  54. #define AL_FORMAT_REAR_I32 0x19DD
  55. #define AL_FORMAT_REAR_FLOAT32 0x19DE
  56. #define AL_FORMAT_QUAD_I32 0x19DF
  57. #define AL_FORMAT_QUAD_FLOAT32 0x19E0
  58. #define AL_FORMAT_51CHN_I32 0x19E1
  59. #define AL_FORMAT_51CHN_FLOAT32 0x19E2
  60. #define AL_FORMAT_61CHN_I32 0x19E3
  61. #define AL_FORMAT_61CHN_FLOAT32 0x19E4
  62. #define AL_FORMAT_71CHN_I32 0x19E5
  63. #define AL_FORMAT_71CHN_FLOAT32 0x19E6
  64. #define AL_FORMAT_UHJ2CHN_I32_SOFT 0x19E7
  65. #define AL_FORMAT_UHJ3CHN_I32_SOFT 0x19E8
  66. #define AL_FORMAT_UHJ4CHN_I32_SOFT 0x19E9
  67. #endif
  68. #ifndef AL_SOFT_source_panning
  69. #define AL_SOFT_source_panning
  70. #define AL_PANNING_ENABLED_SOFT 0x19EA
  71. #define AL_PAN_SOFT 0x19EB
  72. #endif
  73. /* Non-standard exports. Not part of any extension. */
  74. AL_API const ALchar* AL_APIENTRY alsoft_get_version(void) noexcept;
  75. typedef void (ALC_APIENTRY*LPALSOFTLOGCALLBACK)(void *userptr, char level, const char *message, int length) noexcept;
  76. void ALC_APIENTRY alsoft_set_log_callback(LPALSOFTLOGCALLBACK callback, void *userptr) noexcept;
  77. /* Functions from abandoned extensions. Only here for binary compatibility. */
  78. AL_API void AL_APIENTRY alSourceQueueBufferLayersSOFT(ALuint src, ALsizei nb,
  79. const ALuint *buffers) noexcept;
  80. AL_API ALint64SOFT AL_APIENTRY alGetInteger64SOFT(ALenum pname) AL_API_NOEXCEPT;
  81. AL_API void AL_APIENTRY alGetInteger64vSOFT(ALenum pname, ALint64SOFT *values) AL_API_NOEXCEPT;
  82. ALint64SOFT AL_APIENTRY alGetInteger64DirectSOFT(ALCcontext *context, ALenum pname) AL_API_NOEXCEPT;
  83. void AL_APIENTRY alGetInteger64vDirectSOFT(ALCcontext *context, ALenum pname, ALint64SOFT *values) AL_API_NOEXCEPT;
  84. /* Not included in the public headers or export list, as a precaution for apps
  85. * that check these to determine the behavior of the multi-channel *32 formats.
  86. */
  87. #define AL_FORMAT_MONO32 0x1202
  88. #define AL_FORMAT_STEREO32 0x1203
  89. #ifdef __cplusplus
  90. } /* extern "C" */
  91. #endif
  92. /* NOLINTEND */
  93. #endif /* INPROGEXT_H */