From 1dcd75d039272b7aff43a42f5fee6d9a8d822fe9 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Mon, 2 Mar 2009 10:59:37 +0000 Subject: Removed device types from device queries that use tags, under the assumption that all device tags are unique. Specifically, the following no longer need to provide a device type: AM_DEVREAD/WRITE DEVCB_DEVICE_HANDLER devtag_get_device devtag_reset device_list_find_by_tag as well as several device interfaces that referenced other devices. Also fixed assertion due to overflow in the recent sound fix. --- src/emu/streams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/emu/streams.c') diff --git a/src/emu/streams.c b/src/emu/streams.c index 0f13eb9b2a4..639586d8089 100644 --- a/src/emu/streams.c +++ b/src/emu/streams.c @@ -920,7 +920,7 @@ static stream_sample_t *generate_resampled_data(stream_input *input, UINT32 nums source = output->buffer + (basesample - input_stream->output_base_sampindex); /* determine the current fraction of a sample */ - basefrac = (basetime - basesample * input_stream->attoseconds_per_sample) / (input_stream->attoseconds_per_sample >> FRAC_BITS); + basefrac = (basetime - basesample * input_stream->attoseconds_per_sample) / ((input_stream->attoseconds_per_sample + FRAC_ONE - 1) >> FRAC_BITS); assert(basefrac >= 0); assert(basefrac < FRAC_ONE); -- cgit v1.2.3-70-g09d2