| 558 | } |
| 559 | |
| 560 | static void FDS_ESI(void) { |
| 561 | if (FSettings.SndRate) { |
| 562 | if (FSettings.soundq >= 1) { |
| 563 | fdso.cycles = (int64)1 << 39; |
| 564 | } else { |
| 565 | fdso.cycles = ((int64)1 << 40) * FDSClock; |
| 566 | fdso.cycles /= FSettings.SndRate * 16; |
| 567 | } |
| 568 | } |
| 569 | SetReadHandler(0x4040, 0x407f, FDSWaveRead); |
| 570 | SetWriteHandler(0x4040, 0x407f, FDSWaveWrite); |
| 571 | SetWriteHandler(0x4080, 0x408A, FDSSWrite); |
| 572 | SetReadHandler(0x4090, 0x4092, FDSSRead); |
| 573 | } |
| 574 | |
| 575 | void FDSSoundReset(void) { |
| 576 | memset(&fdso, 0, sizeof(fdso)); |
no test coverage detected