diff --git a/src/emu/sound/ymz280b.c b/src/emu/sound/ymz280b.c index 74461f7d3b5..98ad6d47a0e 100644 --- a/src/emu/sound/ymz280b.c +++ b/src/emu/sound/ymz280b.c @@ -480,7 +480,7 @@ static int generate_pcm16(struct YMZ280BVoice *voice, UINT8 *base, UINT32 size, while (samples) { /* fetch the current value */ - val = (INT16)((ymz280b_read_memory(base, size, position / 2 + 1) << 8) + ymz280b_read_memory(base, size, position / 2 + 0)); + val = (INT16)((ymz280b_read_memory(base, size, position / 2 + 0) << 8) + ymz280b_read_memory(base, size, position / 2 + 1)); /* output to the buffer, scaling by the volume */ *buffer++ = val; @@ -505,7 +505,7 @@ static int generate_pcm16(struct YMZ280BVoice *voice, UINT8 *base, UINT32 size, while (samples) { /* fetch the current value */ - val = (INT16)((ymz280b_read_memory(base, size, position / 2 + 1) << 8) + ymz280b_read_memory(base, size, position / 2 + 0)); + val = (INT16)((ymz280b_read_memory(base, size, position / 2 + 0) << 8) + ymz280b_read_memory(base, size, position / 2 + 1)); /* output to the buffer, scaling by the volume */ *buffer++ = val;