Skip to content

Commit

Permalink
sinclair/sprinter.cpp: fix audio chanels for 16b mode (#11542)
Browse files Browse the repository at this point in the history
  • Loading branch information
holub committed Sep 10, 2023
1 parent 32180f0 commit 5ea520f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/mame/sinclair/sprinter.cpp
Expand Up @@ -1513,9 +1513,15 @@ TIMER_CALLBACK_MEMBER(sprinter_state::irq_off)

TIMER_CALLBACK_MEMBER(sprinter_state::cbl_tick)
{
const u16 left = m_cbl_data[m_cbl_cnt++];
u16 left = m_cbl_data[m_cbl_cnt++];
u16 right = cbl_stereo() ? m_cbl_data[m_cbl_cnt++] : left;
if (cbl_mode16())
{
using std::swap;
swap(left, right);
}
m_ldac->write(left);
m_rdac->write(cbl_stereo() ? m_cbl_data[m_cbl_cnt++] : left);
m_rdac->write(right);

if (cbl_int_ena() && !(m_cbl_cnt & 0x7f))
{
Expand Down

0 comments on commit 5ea520f

Please sign in to comment.