inprogext.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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_convolution_effect
  37. #define AL_SOFT_convolution_effect
  38. #define AL_EFFECT_CONVOLUTION_SOFT 0xA000
  39. #define AL_CONVOLUTION_ORIENTATION_SOFT 0x100F /* same as AL_ORIENTATION */
  40. #define AL_EFFECTSLOT_STATE_SOFT 0x199E
  41. #endif
  42. #ifndef AL_SOFT_hold_on_disconnect
  43. #define AL_SOFT_hold_on_disconnect
  44. #define AL_STOP_SOURCES_ON_DISCONNECT_SOFT 0x19AB
  45. #endif
  46. #ifndef AL_EXT_32bit_formats
  47. #define AL_EXT_32bit_formats
  48. #define AL_FORMAT_MONO_I32 0x19DB
  49. #define AL_FORMAT_STEREO_I32 0x19DC
  50. #define AL_FORMAT_REAR_I32 0x19DD
  51. #define AL_FORMAT_REAR_FLOAT32 0x19DE
  52. #define AL_FORMAT_QUAD_I32 0x19DF
  53. #define AL_FORMAT_QUAD_FLOAT32 0x19E0
  54. #define AL_FORMAT_51CHN_I32 0x19E1
  55. #define AL_FORMAT_51CHN_FLOAT32 0x19E2
  56. #define AL_FORMAT_61CHN_I32 0x19E3
  57. #define AL_FORMAT_61CHN_FLOAT32 0x19E4
  58. #define AL_FORMAT_71CHN_I32 0x19E5
  59. #define AL_FORMAT_71CHN_FLOAT32 0x19E6
  60. #define AL_FORMAT_BFORMAT2D_I32 0x19E7
  61. #define AL_FORMAT_BFORMAT3D_I32 0x19E8
  62. #define AL_FORMAT_UHJ2CHN_I32_SOFT 0x19E9
  63. #define AL_FORMAT_UHJ3CHN_I32_SOFT 0x19EA
  64. #define AL_FORMAT_UHJ4CHN_I32_SOFT 0x19EB
  65. #endif
  66. #ifndef AL_SOFT_source_panning
  67. #define AL_SOFT_source_panning
  68. #define AL_PANNING_ENABLED_SOFT 0x19EC
  69. #define AL_PAN_SOFT 0x19ED
  70. #endif
  71. /* Non-standard exports. Not part of any extension. */
  72. AL_API const ALchar* AL_APIENTRY alsoft_get_version(void) noexcept;
  73. typedef void (ALC_APIENTRY*LPALSOFTLOGCALLBACK)(void *userptr, char level, const char *message, int length) noexcept;
  74. void ALC_APIENTRY alsoft_set_log_callback(LPALSOFTLOGCALLBACK callback, void *userptr) noexcept;
  75. /* Functions from abandoned extensions. Only here for binary compatibility. */
  76. AL_API void AL_APIENTRY alSourceQueueBufferLayersSOFT(ALuint src, ALsizei nb,
  77. const ALuint *buffers) noexcept;
  78. AL_API void AL_APIENTRY alAuxiliaryEffectSlotPlaySOFT(ALuint slotid) noexcept;
  79. AL_API void AL_APIENTRY alAuxiliaryEffectSlotPlayvSOFT(ALsizei n, const ALuint *slotids) noexcept;
  80. AL_API void AL_APIENTRY alAuxiliaryEffectSlotStopSOFT(ALuint slotid) noexcept;
  81. AL_API void AL_APIENTRY alAuxiliaryEffectSlotStopvSOFT(ALsizei n, const ALuint *slotids) noexcept;
  82. AL_API ALint64SOFT AL_APIENTRY alGetInteger64SOFT(ALenum pname) AL_API_NOEXCEPT;
  83. AL_API void AL_APIENTRY alGetInteger64vSOFT(ALenum pname, ALint64SOFT *values) AL_API_NOEXCEPT;
  84. ALint64SOFT AL_APIENTRY alGetInteger64DirectSOFT(ALCcontext *context, ALenum pname) AL_API_NOEXCEPT;
  85. void AL_APIENTRY alGetInteger64vDirectSOFT(ALCcontext *context, ALenum pname, ALint64SOFT *values) AL_API_NOEXCEPT;
  86. /* Not included in the public headers or export list, as a precaution for apps
  87. * that check these to determine the behavior of the multi-channel *32 formats.
  88. */
  89. #define AL_FORMAT_MONO32 0x1202
  90. #define AL_FORMAT_STEREO32 0x1203
  91. #ifdef __cplusplus
  92. } /* extern "C" */
  93. #endif
  94. /* NOLINTEND */
  95. #endif /* INPROGEXT_H */