aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-13 22:24:53 +0400
committerAlyssa Milburn2011-06-15 17:34:48 +0200
commit8ede458e7766e0c3335e59129bc3ef29509a01cd (patch)
treebd8b0db350517ed36dc384e54980952745f3be3d /engines
parentdaab18a7be8b5302699dc55f6dd3505195396852 (diff)
downloadscummvm-rg350-8ede458e7766e0c3335e59129bc3ef29509a01cd.tar.gz
scummvm-rg350-8ede458e7766e0c3335e59129bc3ef29509a01cd.tar.bz2
scummvm-rg350-8ede458e7766e0c3335e59129bc3ef29509a01cd.zip
DREAMWEB: fixed invalid channel, removed junk
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/dreamweb.cpp27
1 files changed, 1 insertions, 26 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index b36a372905..01bedbf077 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -768,32 +768,7 @@ void setsoundoff(Context &context) {
void readheader(Context &context);
void loadsample(Context &context) {
- context.engine->loadSounds(1, (const char *)context.data.ptr(context.dx, 13));
- /*
- openfile(context);
- readheader(context);
- context.bx = context.es.word(context.di);
- context.push(context.es);
- context.push(context.di);
- context.push(context.bx);
- context.ds = context.data.word(kSounddata);
- context.cx = context.pop();
- context.dx = 0;
- readfromfile(context);
- context.di = context.pop();
- context.es = context.pop();
- context._add(context.di, 2);
- context.bx = 0;
- context.dx = context.es.word(context.di);
- context._add(context.dx, 1);
- context._shr(context.dx, 1);
- //debug(1, "dx = %u", (uint16)context.dx);
- uint32 size = 0x8000 * context.dx;
- debug(1, "file size = %u", size);
- context.engine->loadSounds(0, size);
-
- closefile(context);
- */
+ context.engine->loadSounds(0, (const char *)context.data.ptr(context.dx, 13));
}
void cancelch0(Context &context);