Skip to content

Commit

Permalink
swp*: Remove some test code that should never have gotten out
Browse files Browse the repository at this point in the history
  • Loading branch information
galibert committed Apr 23, 2024
1 parent 09c9012 commit af6afca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions src/devices/sound/swp00.cpp
Expand Up @@ -1326,7 +1326,6 @@ void swp00_device::sound_stream_update(sound_stream &stream, std::vector<read_st
case 2: // 8-bits linear
val0 = (read_byte(base_address + spos) << 8);
val1 = (read_byte(base_address + spos + 1) << 8);
logerror("XX %04x %04x\n", val0, val1);
break;

case 3: { // 8-bits delta-pcm
Expand Down Expand Up @@ -1376,9 +1375,7 @@ void swp00_device::sound_stream_update(sound_stream &stream, std::vector<read_st
m_lfo_phase[chan] = (m_lfo_phase[chan] + m_global_step[0x20 + (m_lfo_step[chan] & 0x3f)]) & 0x7ffffff;

u32 sample_increment = ((m_pitch[chan] & 0xfff) << (8 + (s16(m_pitch[chan]) >> 12))) >> 4;
m_sample_pos[chan] += 0x8000;//(sample_increment * (0x800 + ((lfo_p_phase * m_lfo_pmod_depth[chan]) >> (m_lfo_step[chan] & 0x40 ? 18 : 19)))) >> 11;
(void)lfo_p_phase;
(void)sample_increment;
m_sample_pos[chan] += (sample_increment * (0x800 + ((lfo_p_phase * m_lfo_pmod_depth[chan]) >> (m_lfo_step[chan] & 0x40 ? 18 : 19)))) >> 11;

if((m_sample_pos[chan] >> 15) >= m_sample_end[chan]) {
if(!m_sample_end[chan])
Expand Down
1 change: 0 additions & 1 deletion src/devices/sound/swp30.cpp
Expand Up @@ -1440,7 +1440,6 @@ void swp30_device::execute_run()
break;
}
}
logerror("XX %04x %04x\n", val0, val1);
break;
}

Expand Down

0 comments on commit af6afca

Please sign in to comment.