diff --git a/src/mess/audio/vboy.c b/src/mess/audio/vboy.c index d35b584d7b6..07def8501ab 100644 --- a/src/mess/audio/vboy.c +++ b/src/mess/audio/vboy.c @@ -32,7 +32,7 @@ const device_type VBOYSND = &device_creator; #define S5SWP 0x51c #define SST0P 0x580 -static const INT16 outTbl[64][32] = { +static const UINT16 outTbl[64][32] = { { 0x0000, 0xffe0, 0xffc0, 0xffa0, 0xff80, 0xff60, 0xff40, 0xff20, 0xff00, 0xfee0, 0xfec0, 0xfea0, 0xfe80, 0xfe60, 0xfe40, 0xfe20, 0xfe00, 0xfde0, 0xfdc0, 0xfda0, 0xfd80, 0xfd60, 0xfd40, 0xfd20, 0xfd00, 0xfce0, 0xfcc0, 0xfca0, 0xfc80, 0xfc60, 0xfc40, 0xfc20}, { 0x0000, 0xffe1, 0xffc2, 0xffa3, 0xff84, 0xff65, 0xff46, 0xff27, 0xff08, 0xfee9, 0xfeca, 0xfeab, 0xfe8c, 0xfe6d, 0xfe4e, 0xfe2f, @@ -350,7 +350,7 @@ void vboysnd_device::sound_stream_update(sound_stream &stream, stream_sample_t * } } - outTblPtr = outTbl[channel->sample[channel->offset]]; + outTblPtr = (INT16 *) outTbl[channel->sample[channel->offset]]; if (outLeft) note_left += outTblPtr[outLeft ]; if (outRight) note_right += outTblPtr[outRight]; channel->offset++;