summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/devices/bus/ata/atapihle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/bus/ata/atapihle.cpp b/src/devices/bus/ata/atapihle.cpp
index 0161084fe1d..ab8cf22d775 100644
--- a/src/devices/bus/ata/atapihle.cpp
+++ b/src/devices/bus/ata/atapihle.cpp
@@ -106,7 +106,8 @@ void atapi_hle_device::fill_buffer()
case IDE_COMMAND_PACKET:
if (m_buffer_size >= m_data_size)
{
- m_buffer_size = m_data_size;
+ // MSCDEX/SHSUCDX PC drivers wants the clamp for CD audio playback (29 bytes).
+ m_buffer_size = m_data_size & 0xfffe;
}
else
{