aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-12-26 22:53:30 +0000
committerPaweł Kołodziejski2003-12-26 22:53:30 +0000
commit160b94fdaaa585f0af5a9d6dde3b2a839109d663 (patch)
treedfa8a399bb59514ae38f52fee78c57aea0c0a65b /scumm
parentec56e09af6a56e7d90bf97ed5723b21e7f2fcb26 (diff)
downloadscummvm-rg350-160b94fdaaa585f0af5a9d6dde3b2a839109d663.tar.gz
scummvm-rg350-160b94fdaaa585f0af5a9d6dde3b2a839109d663.tar.bz2
scummvm-rg350-160b94fdaaa585f0af5a9d6dde3b2a839109d663.zip
added handing voc loops
svn-id: r11951
Diffstat (limited to 'scumm')
-rw-r--r--scumm/imuse_digi.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/scumm/imuse_digi.cpp b/scumm/imuse_digi.cpp
index 4a25804be2..350bcca4c1 100644
--- a/scumm/imuse_digi.cpp
+++ b/scumm/imuse_digi.cpp
@@ -777,7 +777,7 @@ void IMuseDigital::setBundleVoice(byte *src) {
}
void IMuseDigital::startSound(int sound) {
- debug(5, "IMuseDigital::startSound(%d)", sound);
+ debug(0, "IMuseDigital::startSound(%d)", sound);
int l, r;
for (l = 0; l < MAX_DIGITAL_CHANNELS; l++) {
@@ -835,7 +835,8 @@ void IMuseDigital::startSound(int sound) {
_voiceVocData = NULL;
} else if (READ_UINT32(ptr) == MKID('Crea')) {
- byte *t_ptr= readCreativeVoc(ptr, size, _channel[l].freq);
+ int32 loops = 0;
+ byte *t_ptr= readCreativeVoc(ptr, size, _channel[l].freq, loops);
_channel[l].mixerSize = _channel[l].freq * 2;
_channel[l].size = size * 2;
_channel[l].bits = 8;
@@ -998,7 +999,7 @@ void IMuseDigital::startSound(int sound) {
}
void IMuseDigital::stopSound(int sound) {
- debug(5, "IMuseDigital::stopSound(%d)", sound);
+ debug(0, "IMuseDigital::stopSound(%d)", sound);
for (int l = 0; l < MAX_DIGITAL_CHANNELS; l++) {
if ((_channel[l].idSound == sound) && _channel[l].used) {
_channel[l].toBeRemoved = true;
@@ -1233,7 +1234,7 @@ void IMuseDigital::parseScriptCmds(int a, int b, int c, int d, int e, int f, int
}
int IMuseDigital::getSoundStatus(int sound) const {
- debug(5, "IMuseDigital::getSoundStatus(%d)", sound);
+ debug(0, "IMuseDigital::getSoundStatus(%d)", sound);
for (int l = 0; l < MAX_DIGITAL_CHANNELS; l++) {
if ((_channel[l].idSound == sound) && _channel[l].used) {
return 1;