mirror of
https://github.com/7800-devtools/a7800.git
synced 2024-06-16 02:57:39 -04:00
two-tone kludge
This commit is contained in:
parent
a934dad27e
commit
a0009b0d00
|
@ -666,8 +666,10 @@ uint32_t pokey_device::step_one_clock(void)
|
|||
else
|
||||
m_channel[CHAN1].reset_channel();
|
||||
|
||||
if (m_SKCTL & SK_TWOTONE)
|
||||
m_channel[CHAN2].reset_channel();
|
||||
// ** In two-tone mode both channels should reset each other, but activating
|
||||
// ** this one causes off-pitch notes with two-tone music...
|
||||
// if (m_SKCTL & SK_TWOTONE)
|
||||
// m_channel[CHAN2].reset_channel();
|
||||
|
||||
process_channel(CHAN1);
|
||||
|
||||
|
@ -676,11 +678,13 @@ uint32_t pokey_device::step_one_clock(void)
|
|||
m_irq_f(IRQ_TIMR1);
|
||||
}
|
||||
|
||||
|
||||
if (m_channel[CHAN2].check_borrow())
|
||||
{
|
||||
int isJoined = (m_AUDCTL & CH12_JOINED);
|
||||
if (isJoined)
|
||||
m_channel[CHAN1].reset_channel();
|
||||
|
||||
if (m_SKCTL & SK_TWOTONE)
|
||||
m_channel[CHAN1].reset_channel();
|
||||
|
||||
|
@ -693,7 +697,6 @@ uint32_t pokey_device::step_one_clock(void)
|
|||
m_irq_f(IRQ_TIMR2);
|
||||
}
|
||||
|
||||
|
||||
if (m_channel[CHAN3].check_borrow())
|
||||
{
|
||||
int isJoined = (m_AUDCTL & CH34_JOINED);
|
||||
|
|
|
@ -269,7 +269,6 @@ private:
|
|||
|
||||
inline void sample(void) { m_filter_sample = m_output; }
|
||||
inline void reset_channel(void) { m_counter = m_AUDF ^ 0xff; }
|
||||
inline void reset_channel1(void) { m_counter = (m_AUDF ^ 0xff)-1; }
|
||||
|
||||
inline void inc_chan(int cycles)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue