diff options
author | 2021-02-23 21:05:18 +0900 | |
---|---|---|
committer | 2021-02-23 23:05:18 +1100 | |
commit | e6caf6fb9c697bc2b4c95d67111de54e7029eb8d (patch) | |
tree | af9b01331ac48b2a6ee1e4cd6c611b3addc76c3b /src/devices/sound/cdda.cpp | |
parent | 9e0d88f1f70bb5a826a7a4ef5ec24dfa55b1a0fc (diff) |
sound/cdda.cpp: Return LBA position as currently playing LBA. (#7811)
Diffstat (limited to 'src/devices/sound/cdda.cpp')
-rw-r--r-- | src/devices/sound/cdda.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/sound/cdda.cpp b/src/devices/sound/cdda.cpp index e208847510e..7cb2afbd28a 100644 --- a/src/devices/sound/cdda.cpp +++ b/src/devices/sound/cdda.cpp @@ -114,7 +114,7 @@ void cdda_device::pause_audio(int pause) uint32_t cdda_device::get_audio_lba() { m_stream->update(); - return m_audio_lba; + return m_audio_lba - ((m_audio_samples + (CD_MAX_SECTOR_DATA / 4) - 1) / (CD_MAX_SECTOR_DATA / 4)); } |