diff options
author | r09 <rzero9@gmail.com> | 2021-04-03 13:58:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-03 07:58:58 -0400 |
commit | db89743e8be39e80a64256dabb3155ac48d84d8a (patch) | |
tree | 453d9fa8bc235f569f1d130f63a813e5c4289106 | |
parent | 195d45d3358b11e581d5a7251199337726d21806 (diff) |
fmtowns: fix off-by-1 calculation in CDDA length (#7921)
-rw-r--r-- | src/mame/drivers/fmtowns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/fmtowns.cpp b/src/mame/drivers/fmtowns.cpp index 01e7fbaa195..85891a02bea 100644 --- a/src/mame/drivers/fmtowns.cpp +++ b/src/mame/drivers/fmtowns.cpp @@ -1614,7 +1614,7 @@ void towns_state::towns_cdrom_play_cdda(cdrom_image_device* device) lba2 += m_towns_cd.parameter[3] << 8; lba2 += m_towns_cd.parameter[2]; m_towns_cd.cdda_current = msf_to_lbafm(lba1); - m_towns_cd.cdda_length = msf_to_lbafm(lba2) - m_towns_cd.cdda_current; + m_towns_cd.cdda_length = msf_to_lbafm(lba2) - m_towns_cd.cdda_current + 1; m_cdda->set_cdrom(device->get_cdrom_file()); m_cdda->start_audio(m_towns_cd.cdda_current,m_towns_cd.cdda_length); |