diff options
author | Olivier Galibert <galibert@pobox.com> | 2020-11-09 19:51:55 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2020-11-09 19:52:06 +0100 |
commit | 3e04e4b78eccb525031b322f2484417e2fbfc2ae (patch) | |
tree | 453dafbc8adfbe7aacc0d18e908b157d48e21539 /src/devices | |
parent | 6c5844ba4d9eb8991a78389ed43190506db9f259 (diff) |
Fix the opl4 low byte order in 12bits so that it matches the datasheet and the multipcm (GEW8) [O. Galibert]
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/sound/ymf278b.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/ymf278b.cpp b/src/devices/sound/ymf278b.cpp index f9f308a4892..50f655f1942 100644 --- a/src/devices/sound/ymf278b.cpp +++ b/src/devices/sound/ymf278b.cpp @@ -264,10 +264,10 @@ void ymf278b_device::sound_stream_update(sound_stream &stream, std::vector<read_ case 1: if (slot->stepptr & 0x10000) sample = read_byte(slot->startaddr + (slot->stepptr>>17)*3+2)<<8 | - (read_byte(slot->startaddr + (slot->stepptr>>17)*3+1) << 4 & 0xf0); + (read_byte(slot->startaddr + (slot->stepptr>>17)*3+1) & 0xf0); else sample = read_byte(slot->startaddr + (slot->stepptr>>17)*3)<<8 | - (read_byte(slot->startaddr + (slot->stepptr>>17)*3+1) & 0xf0); + ((read_byte(slot->startaddr + (slot->stepptr>>17)*3+1) << 4) & 0xf0); break; // 16 bit |