[Scummvm-cvs-logs] CVS: scummvm/scumm imuse.cpp,1.40,1.41 imuse.h,1.10,1.11
Pawe? Ko?odziejski
aquadran at users.sourceforge.net
Tue Oct 8 07:33:03 CEST 2002
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.cpp,1.9,1.10
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm imuse.cpp,1.41,1.42 imuse.h,1.11,1.12 sound.cpp,1.30,1.31 sound.h,1.10,1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm
In directory usw-pr-cvs1:/tmp/cvs-serv9805
Modified Files:
imuse.cpp imuse.h
Log Message:
added delay before start playing sample to get chance for doComand
Index: imuse.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/imuse.cpp,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- imuse.cpp 8 Oct 2002 07:30:50 -0000 1.40
+++ imuse.cpp 8 Oct 2002 14:32:18 -0000 1.41
@@ -4866,6 +4866,11 @@
continue;
}
+ if (_channel[l]._delay > 0) {
+ _channel[l]._delay--;
+ continue;
+ }
+
if (_channel[l]._volumeFade != -1) {
if (_channel[l]._volumeFadeStep < 0) {
if (_channel[l]._volume > _channel[l]._volumeFade) {
@@ -4991,6 +4996,7 @@
_channel[l]._volume = 127;
_channel[l]._volumeFade = -1;
_channel[l]._volumeFadeParam = 0;
+ _channel[l]._delay = 1;
uint32 tag, size = 0, r, t;
Index: imuse.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/imuse.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- imuse.h 8 Oct 2002 07:30:50 -0000 1.10
+++ imuse.h 8 Oct 2002 14:32:19 -0000 1.11
@@ -85,6 +85,7 @@
int8 _volumeFade;
int8 _volumeFadeParam;
int8 _volumeFadeStep;
+ uint32 _delay;
bool _isJump;
uint32 _numLoops;
uint32 _offsetStop;
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.cpp,1.9,1.10
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm imuse.cpp,1.41,1.42 imuse.h,1.11,1.12 sound.cpp,1.30,1.31 sound.h,1.10,1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list