alu.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef _ALU_H_
  2. #define _ALU_H_
  3. #define ALUAPI
  4. #define ALUAPIENTRY __cdecl
  5. #define BUFFERSIZE 48000
  6. #define FRACTIONBITS 14
  7. #define FRACTIONMASK ((1L<<FRACTIONBITS)-1)
  8. #define OUTPUTCHANNELS 2
  9. #include "altypes.h"
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. ALUAPI ALint ALUAPIENTRY aluF2L(ALfloat value);
  14. ALUAPI ALshort ALUAPIENTRY aluF2S(ALfloat value);
  15. ALUAPI ALvoid ALUAPIENTRY aluCrossproduct(ALfloat *inVector1,ALfloat *inVector2,ALfloat *outVector);
  16. ALUAPI ALfloat ALUAPIENTRY aluDotproduct(ALfloat *inVector1,ALfloat *inVector2);
  17. ALUAPI ALvoid ALUAPIENTRY aluNormalize(ALfloat *inVector);
  18. ALUAPI ALvoid ALUAPIENTRY aluMatrixVector(ALfloat matrix[3][3],ALfloat *vector);
  19. ALUAPI ALvoid ALUAPIENTRY aluCalculateSourceParameters(ALuint source,ALuint channels,ALfloat *drysend,ALfloat *wetsend,ALfloat *pitch);
  20. ALUAPI ALvoid ALUAPIENTRY aluMixData(ALvoid *context,ALvoid *buffer,ALsizei size,ALenum format);
  21. ALUAPI ALvoid ALUAPIENTRY aluSetReverb(ALvoid *Reverb,ALuint Environment);
  22. ALUAPI ALvoid ALUAPIENTRY aluReverb(ALvoid *Reverb,ALfloat Buffer[][2],ALsizei BufferSize);
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif