mirror of
https://github.com/holub/mame
synced 2025-05-21 13:18:56 +03:00
assume same endianness as other yamaha chips for 16bit
(AFAIK, 16bit is not used in any MAME game tho)
This commit is contained in:
parent
b19943d454
commit
d5564eaca2
@ -480,7 +480,7 @@ static int generate_pcm16(struct YMZ280BVoice *voice, UINT8 *base, UINT32 size,
|
|||||||
while (samples)
|
while (samples)
|
||||||
{
|
{
|
||||||
/* fetch the current value */
|
/* 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 */
|
/* output to the buffer, scaling by the volume */
|
||||||
*buffer++ = val;
|
*buffer++ = val;
|
||||||
@ -505,7 +505,7 @@ static int generate_pcm16(struct YMZ280BVoice *voice, UINT8 *base, UINT32 size,
|
|||||||
while (samples)
|
while (samples)
|
||||||
{
|
{
|
||||||
/* fetch the current value */
|
/* 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 */
|
/* output to the buffer, scaling by the volume */
|
||||||
*buffer++ = val;
|
*buffer++ = val;
|
||||||
|
Loading…
Reference in New Issue
Block a user