diff options
author | Vladimir Menshakov | 2011-06-13 22:24:53 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:34:48 +0200 |
commit | 8ede458e7766e0c3335e59129bc3ef29509a01cd (patch) | |
tree | bd8b0db350517ed36dc384e54980952745f3be3d /engines | |
parent | daab18a7be8b5302699dc55f6dd3505195396852 (diff) | |
download | scummvm-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.cpp | 27 |
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); |