idal.cpp 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. // generated header. do not edit
  2. // C:\Python23\Lib\idlelib\idle.pyw
  3. // Mon Mar 28 12:31:26 2005
  4. ALenum ( ALAPIENTRY * idalGetError )( ALvoid ) = NULL;
  5. ALvoid ( ALAPIENTRY * idalGenBuffers )( ALsizei, ALuint * ) = NULL;
  6. ALboolean ( ALAPIENTRY * idalIsSource )( ALuint ) = NULL;
  7. ALvoid ( ALAPIENTRY * idalSourceStop )( ALuint ) = NULL;
  8. ALvoid ( ALAPIENTRY * idalGetSourcei )( ALuint, ALenum, ALint * ) = NULL;
  9. ALint ( ALAPIENTRY * idalGetInteger )( ALenum ) = NULL;
  10. ALCvoid ( ALAPIENTRY * idalcSuspendContext )( ALCcontext * ) = NULL;
  11. ALCboolean ( ALAPIENTRY * idalcMakeContextCurrent )( ALCcontext * ) = NULL;
  12. ALCvoid ( ALAPIENTRY * idalcProcessContext )( ALCcontext * ) = NULL;
  13. ALCvoid ( ALAPIENTRY * idalcDestroyContext )( ALCcontext * ) = NULL;
  14. ALCubyte * ( ALAPIENTRY * idalcGetString )( ALCdevice *, ALCenum ) = NULL;
  15. ALvoid ( ALAPIENTRY * idalBufferData )( ALuint, ALenum, ALvoid *, ALsizei, ALsizei ) = NULL;
  16. ALvoid ( ALAPIENTRY * idalDeleteBuffers )( ALsizei, ALuint * ) = NULL;
  17. ALboolean ( ALAPIENTRY * idalIsExtensionPresent )( ALubyte * ) = NULL;
  18. ALvoid ( ALAPIENTRY * idalDeleteSources )( ALsizei, ALuint * ) = NULL;
  19. ALenum ( ALAPIENTRY * idalGetEnumValue )( ALubyte * ) = NULL;
  20. ALvoid * ( ALAPIENTRY * idalGetProcAddress )( ALubyte * ) = NULL;
  21. ALCcontext * ( ALAPIENTRY * idalcCreateContext )( ALCdevice *, ALCint * ) = NULL;
  22. ALCdevice * ( ALAPIENTRY * idalcOpenDevice )( ALubyte * ) = NULL;
  23. ALvoid ( ALAPIENTRY * idalListenerfv )( ALenum, ALfloat* ) = NULL;
  24. ALvoid ( ALAPIENTRY * idalSourceQueueBuffers )( ALuint, ALsizei, ALuint * ) = NULL;
  25. ALvoid ( ALAPIENTRY * idalSourcei )( ALuint, ALenum, ALint ) = NULL;
  26. ALvoid ( ALAPIENTRY * idalListenerf )( ALenum, ALfloat ) = NULL;
  27. ALCvoid ( ALAPIENTRY * idalcCloseDevice )( ALCdevice * ) = NULL;
  28. ALboolean ( ALAPIENTRY * idalIsBuffer )( ALuint ) = NULL;
  29. ALvoid ( ALAPIENTRY * idalSource3f )( ALuint, ALenum, ALfloat, ALfloat, ALfloat ) = NULL;
  30. ALvoid ( ALAPIENTRY * idalGenSources )( ALsizei, ALuint * ) = NULL;
  31. ALvoid ( ALAPIENTRY * idalSourcef )( ALuint, ALenum, ALfloat ) = NULL;
  32. ALvoid ( ALAPIENTRY * idalSourceUnqueueBuffers )( ALuint, ALsizei, ALuint * ) = NULL;
  33. ALvoid ( ALAPIENTRY * idalSourcePlay )( ALuint ) = NULL;
  34. const char* InitializeIDAL( HMODULE h ) {
  35. idalGetError = ( ALenum ( ALAPIENTRY * ) ( ALvoid ) )GetProcAddress( h, "alGetError" );
  36. if ( !idalGetError) {
  37. return "alGetError";
  38. }
  39. idalGenBuffers = ( ALvoid ( ALAPIENTRY * ) ( ALsizei, ALuint * ) )GetProcAddress( h, "alGenBuffers" );
  40. if ( !idalGenBuffers) {
  41. return "alGenBuffers";
  42. }
  43. idalIsSource = ( ALboolean ( ALAPIENTRY * ) ( ALuint ) )GetProcAddress( h, "alIsSource" );
  44. if ( !idalIsSource) {
  45. return "alIsSource";
  46. }
  47. idalSourceStop = ( ALvoid ( ALAPIENTRY * ) ( ALuint ) )GetProcAddress( h, "alSourceStop" );
  48. if ( !idalSourceStop) {
  49. return "alSourceStop";
  50. }
  51. idalGetSourcei = ( ALvoid ( ALAPIENTRY * ) ( ALuint, ALenum, ALint * ) )GetProcAddress( h, "alGetSourcei" );
  52. if ( !idalGetSourcei) {
  53. return "alGetSourcei";
  54. }
  55. idalGetInteger = ( ALint ( ALAPIENTRY * ) ( ALenum ) )GetProcAddress( h, "alGetInteger" );
  56. if ( !idalGetInteger) {
  57. return "alGetInteger";
  58. }
  59. idalcSuspendContext = ( ALCvoid ( ALAPIENTRY * ) ( ALCcontext * ) )GetProcAddress( h, "alcSuspendContext" );
  60. if ( !idalcSuspendContext) {
  61. return "alcSuspendContext";
  62. }
  63. idalcMakeContextCurrent = ( ALCboolean ( ALAPIENTRY * ) ( ALCcontext * ) )GetProcAddress( h, "alcMakeContextCurrent" );
  64. if ( !idalcMakeContextCurrent) {
  65. return "alcMakeContextCurrent";
  66. }
  67. idalcProcessContext = ( ALCvoid ( ALAPIENTRY * ) ( ALCcontext * ) )GetProcAddress( h, "alcProcessContext" );
  68. if ( !idalcProcessContext) {
  69. return "alcProcessContext";
  70. }
  71. idalcDestroyContext = ( ALCvoid ( ALAPIENTRY * ) ( ALCcontext * ) )GetProcAddress( h, "alcDestroyContext" );
  72. if ( !idalcDestroyContext) {
  73. return "alcDestroyContext";
  74. }
  75. idalcGetString = ( ALCubyte * ( ALAPIENTRY * ) ( ALCdevice *, ALCenum ) )GetProcAddress( h, "alcGetString" );
  76. if ( !idalcGetString) {
  77. return "alcGetString";
  78. }
  79. idalBufferData = ( ALvoid ( ALAPIENTRY * ) ( ALuint, ALenum, ALvoid *, ALsizei, ALsizei ) )GetProcAddress( h, "alBufferData" );
  80. if ( !idalBufferData) {
  81. return "alBufferData";
  82. }
  83. idalDeleteBuffers = ( ALvoid ( ALAPIENTRY * ) ( ALsizei, ALuint * ) )GetProcAddress( h, "alDeleteBuffers" );
  84. if ( !idalDeleteBuffers) {
  85. return "alDeleteBuffers";
  86. }
  87. idalIsExtensionPresent = ( ALboolean ( ALAPIENTRY * ) ( ALubyte * ) )GetProcAddress( h, "alIsExtensionPresent" );
  88. if ( !idalIsExtensionPresent) {
  89. return "alIsExtensionPresent";
  90. }
  91. idalDeleteSources = ( ALvoid ( ALAPIENTRY * ) ( ALsizei, ALuint * ) )GetProcAddress( h, "alDeleteSources" );
  92. if ( !idalDeleteSources) {
  93. return "alDeleteSources";
  94. }
  95. idalGetEnumValue = ( ALenum ( ALAPIENTRY * ) ( ALubyte * ) )GetProcAddress( h, "alGetEnumValue" );
  96. if ( !idalGetEnumValue) {
  97. return "alGetEnumValue";
  98. }
  99. idalGetProcAddress = ( ALvoid * ( ALAPIENTRY * ) ( ALubyte * ) )GetProcAddress( h, "alGetProcAddress" );
  100. if ( !idalGetProcAddress) {
  101. return "alGetProcAddress";
  102. }
  103. idalcCreateContext = ( ALCcontext * ( ALAPIENTRY * ) ( ALCdevice *, ALCint * ) )GetProcAddress( h, "alcCreateContext" );
  104. if ( !idalcCreateContext) {
  105. return "alcCreateContext";
  106. }
  107. idalcOpenDevice = ( ALCdevice * ( ALAPIENTRY * ) ( ALubyte * ) )GetProcAddress( h, "alcOpenDevice" );
  108. if ( !idalcOpenDevice) {
  109. return "alcOpenDevice";
  110. }
  111. idalListenerfv = ( ALvoid ( ALAPIENTRY * ) ( ALenum, ALfloat* ) )GetProcAddress( h, "alListenerfv" );
  112. if ( !idalListenerfv) {
  113. return "alListenerfv";
  114. }
  115. idalSourceQueueBuffers = ( ALvoid ( ALAPIENTRY * ) ( ALuint, ALsizei, ALuint * ) )GetProcAddress( h, "alSourceQueueBuffers" );
  116. if ( !idalSourceQueueBuffers) {
  117. return "alSourceQueueBuffers";
  118. }
  119. idalSourcei = ( ALvoid ( ALAPIENTRY * ) ( ALuint, ALenum, ALint ) )GetProcAddress( h, "alSourcei" );
  120. if ( !idalSourcei) {
  121. return "alSourcei";
  122. }
  123. idalListenerf = ( ALvoid ( ALAPIENTRY * ) ( ALenum, ALfloat ) )GetProcAddress( h, "alListenerf" );
  124. if ( !idalListenerf) {
  125. return "alListenerf";
  126. }
  127. idalcCloseDevice = ( ALCvoid ( ALAPIENTRY * ) ( ALCdevice * ) )GetProcAddress( h, "alcCloseDevice" );
  128. if ( !idalcCloseDevice) {
  129. return "alcCloseDevice";
  130. }
  131. idalIsBuffer = ( ALboolean ( ALAPIENTRY * ) ( ALuint ) )GetProcAddress( h, "alIsBuffer" );
  132. if ( !idalIsBuffer) {
  133. return "alIsBuffer";
  134. }
  135. idalSource3f = ( ALvoid ( ALAPIENTRY * ) ( ALuint, ALenum, ALfloat, ALfloat, ALfloat ) )GetProcAddress( h, "alSource3f" );
  136. if ( !idalSource3f) {
  137. return "alSource3f";
  138. }
  139. idalGenSources = ( ALvoid ( ALAPIENTRY * ) ( ALsizei, ALuint * ) )GetProcAddress( h, "alGenSources" );
  140. if ( !idalGenSources) {
  141. return "alGenSources";
  142. }
  143. idalSourcef = ( ALvoid ( ALAPIENTRY * ) ( ALuint, ALenum, ALfloat ) )GetProcAddress( h, "alSourcef" );
  144. if ( !idalSourcef) {
  145. return "alSourcef";
  146. }
  147. idalSourceUnqueueBuffers = ( ALvoid ( ALAPIENTRY * ) ( ALuint, ALsizei, ALuint * ) )GetProcAddress( h, "alSourceUnqueueBuffers" );
  148. if ( !idalSourceUnqueueBuffers) {
  149. return "alSourceUnqueueBuffers";
  150. }
  151. idalSourcePlay = ( ALvoid ( ALAPIENTRY * ) ( ALuint ) )GetProcAddress( h, "alSourcePlay" );
  152. if ( !idalSourcePlay) {
  153. return "alSourcePlay";
  154. }
  155. return NULL;
  156. };