quick fix for ppp1mp static sound

This commit is contained in:
Michaël Banaan Ananas 2012-11-17 22:14:25 +00:00
parent e2862a7c07
commit a418bab563

View File

@ -482,7 +482,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 + 0) << 8) + ymz280b_read_memory(base, size, position / 2 + 1));
val = (INT16)((ymz280b_read_memory(base, size, position / 2 + 1) << 8) + ymz280b_read_memory(base, size, position / 2 + 0));
/* output to the buffer, scaling by the volume */
*buffer++ = val;
@ -507,7 +507,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 + 0) << 8) + ymz280b_read_memory(base, size, position / 2 + 1));
val = (INT16)((ymz280b_read_memory(base, size, position / 2 + 1) << 8) + ymz280b_read_memory(base, size, position / 2 + 0));
/* output to the buffer, scaling by the volume */
*buffer++ = val;