From 34d85734e65ccf7103f06fc7682921da5d16ab8d Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Mon, 21 Nov 2011 14:33:36 +0100 Subject: DREAMWEB: Stub wrappers with a better signature for 'playchannel[0|1]' --- engines/dreamweb/stubs.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'engines/dreamweb/stubs.cpp') diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 2bfa3849c6..5ee27e1878 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -544,8 +544,7 @@ void DreamGenContext::setuptimedtemp(uint8 textIndex, uint8 voiceIndex, uint8 x, al = textIndex; loadspeech(); if (data.byte(kSpeechloaded) == 1) { - al = 50+12; - playchannel1(); + playchannel1(50+12); } dx = pop(); cx = pop(); @@ -2204,5 +2203,15 @@ Frame * DreamGenContext::tempGraphics3() { return (Frame *)segRef(data.word(kTempgraphics3)).ptr(0, 0); } +void DreamGenContext::playchannel0(uint8 index) { + al = index; + playchannel0(); +} + +void DreamGenContext::playchannel1(uint8 index) { + al = index; + playchannel1(); +} + } /*namespace dreamgen */ -- cgit v1.2.3