fix for faders
authorkoda
Fri, 16 Oct 2009 18:56:08 +0000
changeset 2501 51ebab1b446d
parent 2500 31ba68a50208
child 2502 f67c603c23b5
fix for faders
hedgewars/uSound.pas
openalbridge/openalbridge.c
--- a/hedgewars/uSound.pas	Fri Oct 16 18:37:55 2009 +0000
+++ b/hedgewars/uSound.pas	Fri Oct 16 18:56:08 2009 +0000
@@ -195,7 +195,7 @@
 WriteLnToConsole(msgOK);
 
 oalb_playsound(Mus, 1);
-oalb_fadein(Mus, 50);
+oalb_fadein(Mus, 20);
 end;
 
 function ChangeVolume(voldelta: LongInt): LongInt;
--- a/openalbridge/openalbridge.c	Fri Oct 16 18:37:55 2009 +0000
+++ b/openalbridge/openalbridge.c	Fri Oct 16 18:56:08 2009 +0000
@@ -389,7 +389,7 @@
         }
         
         fade = (fade_t*) Malloc(sizeof(fade_t));
-        fade->index = iIndex;
+        fade->index = theSounds[iIndex].sourceIndex;
         fade->quantity = quantity;
         
         if(iIndex < 0 || iIndex >= iNumSounds) {