trunk/src/emu/sound/ymf271.c
| r23997 | r23998 | |
| 454 | 454 | // overflow |
| 455 | 455 | slot->stepptr &= 0xffff; |
| 456 | 456 | slot->stepptr |= ((UINT64)slot->loopaddr<<16); |
| 457 | if ((slot->stepptr>>16) > slot->endaddr) |
| 458 | { |
| 459 | // still overflow? (triggers in rdft2, rarely) |
| 460 | slot->stepptr &= 0xffff; |
| 461 | slot->stepptr |= ((UINT64)slot->endaddr<<16); |
| 462 | } |
| 457 | 463 | } |
| 458 | | if ((slot->stepptr>>16) > slot->endaddr) |
| 459 | | { |
| 460 | | // still overflow? (triggers in rdft2, rarely) |
| 461 | | slot->stepptr &= 0xffff; |
| 462 | | slot->stepptr |= ((UINT64)slot->endaddr<<16); |
| 463 | | } |
| 464 | 464 | } |
| 465 | 465 | |
| 466 | 466 | if (slot->bits == 8) |