libmikmod/libmikmod-3.1.12-loopingvolume-fix.diff
OBS User autobuild dfdc7a3091 Accepting request 27748 from multimedia:libs
Copy from multimedia:libs/libmikmod based on submit request 27748 from user tiwai

OBS-URL: https://build.opensuse.org/request/show/27748
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libmikmod?expand=0&rev=12
2009-12-29 23:25:54 +00:00

17 lines
528 B
Diff

Yi-Huang Han - Wed Oct 24 21:55:47 PDT 2001
* Fixed MOD music volume when looping
Index: libmikmod-3.1.12/playercode/mplayer.c
===================================================================
--- libmikmod-3.1.12.orig/playercode/mplayer.c
+++ libmikmod-3.1.12/playercode/mplayer.c
@@ -3019,7 +3019,7 @@ MIKMODAPI void Player_SetVolume(SWORD vo
{
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);
}