mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
6.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/daja77/pyopenal/fix-for-new-openal.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./py_openal.c.vanilla 2005-07-13 17:06:10.000000000 +0200
  20. +++ ./py_openal.c 2005-07-13 18:13:49.000000000 +0200
  21. @@ -60,16 +60,6 @@
  22. }
  23. -static PyObject *_wrap_alHint(PyObject *self, PyObject *args) {
  24. - ALenum arg1;
  25. - ALenum arg2;
  26. - if(!PyArg_ParseTuple(args,(char *)"ii:alHint",&arg1,&arg2)) return NULL;
  27. - alHint(arg1,arg2);
  28. - Py_INCREF(Py_None);
  29. - return Py_None;
  30. -}
  31. -
  32. -
  33. static PyObject *_wrap_alGetBooleanv(PyObject *self, PyObject *args) {
  34. ALenum arg1 ;
  35. int arg2 ;
  36. @@ -906,14 +896,14 @@
  37. void *result;
  38. if(!PyCObject_Check(arg)) return NULL;
  39. - result = alcProcessContext(PyCObject_AsVoidPtr(arg));
  40. + alcProcessContext(PyCObject_AsVoidPtr(arg));
  41. - if(result == NULL) {
  42. + //if(result == NULL) {
  43. Py_INCREF(Py_None);
  44. return Py_None;
  45. - } else {
  46. + /*} else {
  47. return PyCObject_FromVoidPtr(result, NULL);
  48. - }
  49. + }*/
  50. }
  51. @@ -928,7 +918,9 @@
  52. static PyObject *_wrap_alcDestroyContext(PyObject *self, PyObject *arg) {
  53. if(!PyCObject_Check(arg)) return NULL;
  54. - return PyInt_FromLong((long) alcDestroyContext(PyCObject_AsVoidPtr(arg)));
  55. + alcDestroyContext(PyCObject_AsVoidPtr(arg));
  56. + Py_INCREF(Py_None);
  57. + return Py_None;
  58. }
  59. @@ -1050,7 +1042,7 @@
  60. }
  61. -static PyObject *_wrap_alutLoadWAV(PyObject *self, PyObject *arg) {
  62. +static PyObject *_wrap_alutLoadWAVFile(PyObject *self, PyObject *arg) {
  63. ALvoid *wave = NULL;
  64. ALsizei format;
  65. ALsizei size;
  66. @@ -1060,7 +1052,7 @@
  67. if(!PyString_Check(arg)) return NULL;
  68. - alutLoadWAV((char* const) PyString_AS_STRING(arg), &wave, &format, &size, &bits, &freq);
  69. + alutLoadWAVFile((char* const) PyString_AS_STRING(arg), &wave, &format, &size, &bits, &freq);
  70. if(wave == NULL) {
  71. Py_INCREF(Py_None);
  72. @@ -2219,7 +2211,6 @@
  73. { (char *)"alEnable", (PyCFunction) _wrap_alEnable, METH_O },
  74. { (char *)"alDisable", (PyCFunction) _wrap_alDisable, METH_O },
  75. { (char *)"alIsEnabled", (PyCFunction) _wrap_alIsEnabled, METH_O },
  76. - { (char *)"alHint", (PyCFunction) _wrap_alHint, METH_VARARGS },
  77. { (char *)"alGetBooleanv", (PyCFunction) _wrap_alGetBooleanv, METH_VARARGS },
  78. { (char *)"alGetIntegerv", (PyCFunction) _wrap_alGetIntegerv, METH_VARARGS },
  79. { (char *)"alGetFloatv", (PyCFunction) _wrap_alGetFloatv, METH_VARARGS },
  80. @@ -2284,7 +2275,7 @@
  81. */
  82. { (char *)"alutInit", (PyCFunction) _wrap_alutInit, METH_VARARGS },
  83. { (char *)"alutExit", (PyCFunction) _wrap_alutExit, METH_NOARGS },
  84. - { (char *)"alutLoadWAV", (PyCFunction) _wrap_alutLoadWAV, METH_VARARGS },
  85. + { (char *)"alutLoadWAVFile", (PyCFunction) _wrap_alutLoadWAVFile, METH_VARARGS },
  86. /*
  87. { (char *)"alcGetAudioChannel_LOKI", (PyCFunction) _wrap_alcGetAudioChannel_LOKI, METH_VARARGS },
  88. { (char *)"alcSetAudioChannel_LOKI", (PyCFunction) _wrap_alcSetAudioChannel_LOKI, METH_VARARGS },
  89. @@ -2339,7 +2330,6 @@
  90. PyModule_AddIntConstant(m, "AL_STREAMING", AL_STREAMING);
  91. PyModule_AddIntConstant(m, "AL_BUFFER", AL_BUFFER);
  92. PyModule_AddIntConstant(m, "AL_GAIN", AL_GAIN);
  93. - PyModule_AddIntConstant(m, "AL_BYTE_LOKI", AL_BYTE_LOKI);
  94. PyModule_AddIntConstant(m, "AL_MIN_GAIN", AL_MIN_GAIN);
  95. PyModule_AddIntConstant(m, "AL_MAX_GAIN", AL_MAX_GAIN);
  96. PyModule_AddIntConstant(m, "AL_ORIENTATION", AL_ORIENTATION);
  97. @@ -2375,22 +2365,9 @@
  98. PyModule_AddIntConstant(m, "AL_EXTENSIONS", AL_EXTENSIONS);
  99. PyModule_AddIntConstant(m, "AL_DOPPLER_FACTOR", AL_DOPPLER_FACTOR);
  100. PyModule_AddIntConstant(m, "AL_DOPPLER_VELOCITY", AL_DOPPLER_VELOCITY);
  101. - PyModule_AddIntConstant(m, "AL_DISTANCE_SCALE", AL_DISTANCE_SCALE);
  102. PyModule_AddIntConstant(m, "AL_DISTANCE_MODEL", AL_DISTANCE_MODEL);
  103. PyModule_AddIntConstant(m, "AL_INVERSE_DISTANCE", AL_INVERSE_DISTANCE);
  104. PyModule_AddIntConstant(m, "AL_INVERSE_DISTANCE_CLAMPED", AL_INVERSE_DISTANCE_CLAMPED);
  105. - PyModule_AddIntConstant(m, "AL_ENV_ROOM_IASIG", AL_ENV_ROOM_IASIG);
  106. - PyModule_AddIntConstant(m, "AL_ENV_ROOM_HIGH_FREQUENCY_IASIG", AL_ENV_ROOM_HIGH_FREQUENCY_IASIG);
  107. - PyModule_AddIntConstant(m, "AL_ENV_ROOM_ROLLOFF_FACTOR_IASIG", AL_ENV_ROOM_ROLLOFF_FACTOR_IASIG);
  108. - PyModule_AddIntConstant(m, "AL_ENV_DECAY_TIME_IASIG", AL_ENV_DECAY_TIME_IASIG);
  109. - PyModule_AddIntConstant(m, "AL_ENV_DECAY_HIGH_FREQUENCY_RATIO_IASIG", AL_ENV_DECAY_HIGH_FREQUENCY_RATIO_IASIG);
  110. - PyModule_AddIntConstant(m, "AL_ENV_REFLECTIONS_IASIG", AL_ENV_REFLECTIONS_IASIG);
  111. - PyModule_AddIntConstant(m, "AL_ENV_REFLECTIONS_DELAY_IASIG", AL_ENV_REFLECTIONS_DELAY_IASIG);
  112. - PyModule_AddIntConstant(m, "AL_ENV_REVERB_IASIG", AL_ENV_REVERB_IASIG);
  113. - PyModule_AddIntConstant(m, "AL_ENV_REVERB_DELAY_IASIG", AL_ENV_REVERB_DELAY_IASIG);
  114. - PyModule_AddIntConstant(m, "AL_ENV_DIFFUSION_IASIG", AL_ENV_DIFFUSION_IASIG);
  115. - PyModule_AddIntConstant(m, "AL_ENV_DENSITY_IASIG", AL_ENV_DENSITY_IASIG);
  116. - PyModule_AddIntConstant(m, "AL_ENV_HIGH_FREQUENCY_REFERENCE_IASIG", AL_ENV_HIGH_FREQUENCY_REFERENCE_IASIG);
  117. // PyModule_AddIntConstant(m, "AL_FORMAT_IMA_ADPCM_MONO16_EXT", AL_FORMAT_IMA_ADPCM_MONO16_EXT);
  118. // PyModule_AddIntConstant(m, "AL_FORMAT_IMA_ADPCM_STEREO16_EXT", AL_FORMAT_IMA_ADPCM_STEREO16_EXT);
  119. // PyModule_AddIntConstant(m, "AL_FORMAT_WAVE_EXT", AL_FORMAT_WAVE_EXT);