Namco WSG: 8 channel WSG (CUS30) now works
This commit is contained in:
parent
c251ea2198
commit
9162e8e241
5 changed files with 37 additions and 13 deletions
|
|
@ -87,6 +87,8 @@ void namco_audio_device::device_start(unsigned char* wavePtr)
|
|||
|
||||
m_wave_ptr = wavePtr;
|
||||
|
||||
memset(m_waveram_alloc,0,1024);
|
||||
|
||||
/* build the waveform table */
|
||||
build_decoded_waveform(m_wave_ptr);
|
||||
|
||||
|
|
@ -581,8 +583,9 @@ void namco_cus30_device::namcos1_cus30_w(int offset, uint8_t data)
|
|||
update_namco_waveform(offset, data);
|
||||
}
|
||||
}
|
||||
else if (offset < 0x140)
|
||||
else if (offset < 0x140) {
|
||||
namcos1_sound_w(offset - 0x100,data);
|
||||
}
|
||||
else
|
||||
m_wavedata[offset] = data;
|
||||
}
|
||||
|
|
@ -653,13 +656,13 @@ void namco_audio_device::sound_stream_update(short** outputs, int len)
|
|||
|
||||
if (voice->noise_state)
|
||||
{
|
||||
lmix[i]=l_noise_data;
|
||||
rmix[i]=r_noise_data;
|
||||
lmix[i]+=l_noise_data;
|
||||
rmix[i]+=r_noise_data;
|
||||
}
|
||||
else
|
||||
{
|
||||
lmix[i]=-l_noise_data;
|
||||
rmix[i]=-r_noise_data;
|
||||
lmix[i]+=-l_noise_data;
|
||||
rmix[i]+=-r_noise_data;
|
||||
}
|
||||
|
||||
if (hold)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue