assume same endianness as other yamaha chips for 16bit

(AFAIK, 16bit is not used in any MAME game tho)
This commit is contained in:
Michaël Banaan Ananas 2011-08-18 17:20:20 +00:00
parent b19943d454
commit d5564eaca2

View File

@ -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;