[Scummvm-cvs-logs] CVS: scummvm/bs2/driver d_sound.cpp,1.44,1.45
Max Horn
fingolfin at users.sourceforge.net
Fri Sep 5 15:11:01 CEST 2003
Update of /cvsroot/scummvm/scummvm/bs2/driver
In directory sc8-pr-cvs1:/tmp/cvs-serv14321/bs2/driver
Modified Files:
d_sound.cpp
Log Message:
moved the sound ID param in playRaw before volume/pan
Index: d_sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/bs2/driver/d_sound.cpp,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- d_sound.cpp 5 Sep 2003 16:07:03 -0000 1.44
+++ d_sound.cpp 5 Sep 2003 22:09:56 -0000 1.45
@@ -564,7 +564,7 @@
for (uint j = 0; j < (bufferSize / 2); j++)
data16[j] = TO_BE_16(data16[j]);
- _mixer->playRaw(&soundHandleSpeech, data16, bufferSize, 22050, flags, volume, pan);
+ _mixer->playRaw(&soundHandleSpeech, data16, bufferSize, 22050, flags, -1, volume, pan);
speechStatus = 1;
}
@@ -755,7 +755,7 @@
} else {
volume = musicVolTable[volMusic[0]];
}
- g_engine->_mixer->playRaw(&soundHandleFx[i], bufferFx[i], bufferSizeFx[i], fxRate[i], flagsFx[i], volume, 0);
+ g_engine->_mixer->playRaw(&soundHandleFx[i], bufferFx[i], bufferSizeFx[i], fxRate[i], flagsFx[i], -1, volume, 0);
} else {
i = GetFxIndex(id);
if (i == MAXFX) {
@@ -779,7 +779,7 @@
}
p = panTable[pan + 16];
- g_engine->_mixer->playRaw(&soundHandleFx[i], bufferFx[i], bufferSizeFx[i], fxRate[i], flagsFx[i], volume, p);
+ g_engine->_mixer->playRaw(&soundHandleFx[i], bufferFx[i], bufferSizeFx[i], fxRate[i], flagsFx[i], -1, volume, p);
}
} else {
if (type == RDSE_FXLEADIN) {
@@ -801,7 +801,7 @@
} else {
volume = musicVolTable[volMusic[0]];
}
- g_engine->_mixer->playRaw(&soundHandleFx[i], bufferFx[i], bufferSizeFx[i], fxRate[i], flagsFx[i], volume, 0);
+ g_engine->_mixer->playRaw(&soundHandleFx[i], bufferFx[i], bufferSizeFx[i], fxRate[i], flagsFx[i], -1, volume, 0);
} else {
hr = OpenFx(id, data);
if (hr != RD_OK) {
@@ -828,7 +828,7 @@
volume = vol * fxVol;
}
p = panTable[pan + 16];
- g_engine->_mixer->playRaw(&soundHandleFx[i], bufferFx[i], bufferSizeFx[i], fxRate[i], flagsFx[i], volume, p);
+ g_engine->_mixer->playRaw(&soundHandleFx[i], bufferFx[i], bufferSizeFx[i], fxRate[i], flagsFx[i], -1, volume, p);
}
}
}
More information about the Scummvm-git-logs
mailing list