From 24da86636707f81d71d84d12c24093535470c2f5 Mon Sep 17 00:00:00 2001 From: Couriersud Date: Thu, 24 Sep 2009 21:28:33 +0000 Subject: [PATCH] discrete_sound_r now can inquiry any node - the return type is UINT8, consequently the designer needs to ensure that the node delivers adequately scaled data. - input nodes allow the input data to be scaled. The return value is the node value *after* scaling. --- src/emu/sound/disc_inp.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/emu/sound/disc_inp.c b/src/emu/sound/disc_inp.c index f354adc6133..686d782bcd6 100644 --- a/src/emu/sound/disc_inp.c +++ b/src/emu/sound/disc_inp.c @@ -63,18 +63,13 @@ READ8_DEVICE_HANDLER(discrete_sound_r) /* Read the node input value if allowed */ if (node) { - struct dss_input_context *context = (struct dss_input_context *)node->context; - /* Bring the system up to now */ stream_update(info->discrete_stream); - if ((node->module->type >= DSS_INPUT_DATA) && (node->module->type <= DSS_INPUT_PULSE)) - { - data = context->data; - } + data = (UINT8) node->output[NODE_CHILD_NODE_NUM(offset)]; } else - discrete_log(info, "discrete_sound_r read from non-existent NODE_%02d\n", offset-NODE_00); + fatalerror("discrete_sound_r read from non-existent NODE_%02d\n", offset-NODE_00); return data; }