OpenSDE Packages Database (without history before r20070)
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.

71 lines
3.0 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../xmp/compile.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. diff -urN xmp-2.0.4.orig/src/loaders/it_load.c xmp-2.0.4/src/loaders/it_load.c
  17. --- xmp-2.0.4.orig/src/loaders/it_load.c 2005-03-29 20:16:41.008201432 +0200
  18. +++ xmp-2.0.4/src/loaders/it_load.c 2005-03-29 20:18:19.885169848 +0200
  19. @@ -327,14 +327,14 @@
  20. #define BUILD_ENV(X) { \
  21. fread (&env, 1, sizeof (env), f); \
  22. - xxih[i].##X##ei.flg = env.flg & IT_ENV_ON ? XXM_ENV_ON : 0; \
  23. - xxih[i].##X##ei.flg |= env.flg & IT_ENV_LOOP ? XXM_ENV_LOOP : 0; \
  24. - xxih[i].##X##ei.flg |= env.flg & IT_ENV_SLOOP ? XXM_ENV_SUS : 0; \
  25. - xxih[i].##X##ei.npt = env.num; \
  26. - xxih[i].##X##ei.sus = env.slb; \
  27. - xxih[i].##X##ei.sue = env.sle; \
  28. - xxih[i].##X##ei.lps = env.lpb; \
  29. - xxih[i].##X##ei.lpe = env.lpe; \
  30. + xxih[i]. X##ei.flg = env.flg & IT_ENV_ON ? XXM_ENV_ON : 0; \
  31. + xxih[i]. X##ei.flg |= env.flg & IT_ENV_LOOP ? XXM_ENV_LOOP : 0; \
  32. + xxih[i]. X##ei.flg |= env.flg & IT_ENV_SLOOP ? XXM_ENV_SUS : 0; \
  33. + xxih[i]. X##ei.npt = env.num; \
  34. + xxih[i]. X##ei.sus = env.slb; \
  35. + xxih[i]. X##ei.sue = env.sle; \
  36. + xxih[i]. X##ei.lps = env.lpb; \
  37. + xxih[i]. X##ei.lpe = env.lpe; \
  38. if (env.num) xx##X##e[i] = calloc (4, env.num); \
  39. for (j = 0; j < env.num; j++) { \
  40. L_ENDIAN16 (env.node[j].x); \
  41. diff -urN xmp-2.0.4.orig/src/xmms/plugin.c xmp-2.0.4/src/xmms/plugin.c
  42. --- xmp-2.0.4.orig/src/xmms/plugin.c 2005-03-29 20:16:40.999202800 +0200
  43. +++ xmp-2.0.4/src/xmms/plugin.c 2005-03-29 20:19:24.391363416 +0200
  44. @@ -228,7 +228,7 @@
  45. xmp_cfg.filter = TRUE;
  46. xmp_cfg.pan_amplitude = 80;
  47. -#define CFGREADINT(x) xmms_cfg_read_int (cfg, "XMP", #x, &xmp_cfg.##x)
  48. +#define CFGREADINT(x) xmms_cfg_read_int (cfg, "XMP", #x, &xmp_cfg. x)
  49. filename = g_strconcat(g_get_home_dir(), "/.xmms/config", NULL);
  50. if ((cfg = xmms_cfg_open_file(filename))) {
  51. @@ -558,7 +558,7 @@
  52. gtk_object_set_data(GTK_OBJECT(xmp_conf_window), #w, w); \
  53. gtk_widget_show(w); \
  54. gtk_box_pack_start(GTK_BOX(vbox6), w, TRUE, TRUE, 0); \
  55. - if (xmp_cfg.##o == 1) \
  56. + if (xmp_cfg. o == 1) \
  57. gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), TRUE); \
  58. }
  59. @@ -658,7 +658,7 @@
  60. if (!cfg)
  61. cfg = xmms_cfg_new();
  62. -#define CFGWRITEINT(x) xmms_cfg_write_int (cfg, "XMP", #x, xmp_cfg.##x)
  63. +#define CFGWRITEINT(x) xmms_cfg_write_int (cfg, "XMP", #x, xmp_cfg. x)
  64. CFGWRITEINT (mixing_freq);
  65. CFGWRITEINT (force8bit);