fixed 12bit samples, thanks wouter_

This commit is contained in:
Michaël Banaan Ananas 2011-08-10 18:11:50 +00:00
parent c0852f3ea9
commit 6bdac8977b

View File

@ -384,7 +384,7 @@ static STREAM_UPDATE( ymf278b_pcm_update )
// 12 bit
case 1:
if (slot->stepptr & 1)
if (slot->stepptr & 0x10000)
sample = ymf278b_read_memory(chip, slot->startaddr + (slot->stepptr>>17)*3+2)<<8 |
(ymf278b_read_memory(chip, slot->startaddr + (slot->stepptr>>17)*3+1) << 4 & 0xf0);
else