mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-06 00:31:43 +00:00
added delay before start playing sample to get chance for doComand
svn-id: r5109
This commit is contained in:
parent
c10698a614
commit
15675e5652
@ -4866,6 +4866,11 @@ void IMuseDigital::handler() {
|
||||
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 @@ void IMuseDigital::startSound(int sound) {
|
||||
_channel[l]._volume = 127;
|
||||
_channel[l]._volumeFade = -1;
|
||||
_channel[l]._volumeFadeParam = 0;
|
||||
_channel[l]._delay = 1;
|
||||
|
||||
uint32 tag, size = 0, r, t;
|
||||
|
||||
|
@ -85,6 +85,7 @@ private:
|
||||
int8 _volumeFade;
|
||||
int8 _volumeFadeParam;
|
||||
int8 _volumeFadeStep;
|
||||
uint32 _delay;
|
||||
bool _isJump;
|
||||
uint32 _numLoops;
|
||||
uint32 _offsetStop;
|
||||
|
Loading…
x
Reference in New Issue
Block a user