summaryrefslogtreecommitdiffstats
path: root/abs/extra/libmikmod/libmikmod-3.1.12-loopingvolume-fix.diff
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/libmikmod/libmikmod-3.1.12-loopingvolume-fix.diff')
-rw-r--r--abs/extra/libmikmod/libmikmod-3.1.12-loopingvolume-fix.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/abs/extra/libmikmod/libmikmod-3.1.12-loopingvolume-fix.diff b/abs/extra/libmikmod/libmikmod-3.1.12-loopingvolume-fix.diff
new file mode 100644
index 0000000..f0ce70e
--- /dev/null
+++ b/abs/extra/libmikmod/libmikmod-3.1.12-loopingvolume-fix.diff
@@ -0,0 +1,15 @@
+Yi-Huang Han - Wed Oct 24 21:55:47 PDT 2001
+ * Fixed MOD music volume when looping
+
+diff -ru libmikmod-3.1.12.orig/playercode/mplayer.c libmikmod-3.1.12/playercode/mplayer.c
+--- libmikmod-3.1.12.orig/playercode/mplayer.c 2009-10-05 00:19:59.000000000 -0700
++++ libmikmod-3.1.12/playercode/mplayer.c 2009-10-05 00:44:35.000000000 -0700
+@@ -3019,7 +3019,7 @@
+ {
+ MUTEX_LOCK(vars);
+ if (pf)
+- pf->volume=(volume<0)?0:(volume>128)?128:volume;
++ pf->volume=pf->initvolume=(volume<0)?0:(volume>128)?128:volume;
+ MUTEX_UNLOCK(vars);
+ }
+