diff options
author | 2018-08-26 13:50:14 +1000 | |
---|---|---|
committer | 2018-08-26 13:50:14 +1000 | |
commit | e1ffc337ffb21282afc61269959815674f35cbd8 (patch) | |
tree | bed0e13ef5961b431b5a4d92472385b5ef0029ff /src/devices/sound/huc6230.cpp | |
parent | b0ae30ee16c472f9c75ed1c6822cc3d79229f124 (diff) |
srcclean and manual fixup (nw)
Diffstat (limited to 'src/devices/sound/huc6230.cpp')
-rw-r--r-- | src/devices/sound/huc6230.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/sound/huc6230.cpp b/src/devices/sound/huc6230.cpp index f762b2ad7f2..23155c4dc7f 100644 --- a/src/devices/sound/huc6230.cpp +++ b/src/devices/sound/huc6230.cpp @@ -2,12 +2,12 @@ // copyright-holders:cam900 /* Hudson HuC6230 SoundBox - HuC6280 PSG with ADPCM + HuC6280 PSG with ADPCM - TODO: - - Volume is linear? - - Make it actually working - - Implement CDDA Volume + TODO: + - Volume is linear? + - Make it actually working + - Implement CDDA Volume */ #include "emu.h" @@ -52,7 +52,7 @@ void huc6230_device::sound_stream_update(sound_stream &stream, stream_sample_t * if (!channel->m_interpolate) sample = channel->m_curr_sample; else - sample = ((channel->m_prev_sample * (frq - channel->m_pos)) + + sample = ((channel->m_prev_sample * (frq - channel->m_pos)) + (channel->m_curr_sample * channel->m_pos)) >> m_adpcm_freq; outputs[0][i] = clamp(outputs[0][i] + ((sample * channel->m_lvol) >> 2), -32768, 32767); |