mirror of
https://github.com/holub/mame
synced 2025-06-09 14:22:41 +03:00
ata/atapihle.cpp: clamp buffer size to word units in command packet
* fix CD audio playback in PC-based systems
This commit is contained in:
parent
be1236fcf8
commit
6f892bc2e3
@ -106,7 +106,8 @@ void atapi_hle_device::fill_buffer()
|
|||||||
case IDE_COMMAND_PACKET:
|
case IDE_COMMAND_PACKET:
|
||||||
if (m_buffer_size >= m_data_size)
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user