diff options
author | Vas Crabb <vas@vastheman.com> | 2018-08-29 05:29:50 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2018-08-29 05:29:50 +1000 |
commit | 9f7bcbd886ba69bccd9180ded7cfbd112f02b23b (patch) | |
tree | ca4f2cc2b76f5e62c7cb14aace1f0b99754464c7 /src/devices/sound/huc6230.cpp | |
parent | 413e511e121f44e033968dddc6f9a5514030b5b1 (diff) |
final cleanup (nw)
Diffstat (limited to 'src/devices/sound/huc6230.cpp')
-rw-r--r-- | src/devices/sound/huc6230.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/devices/sound/huc6230.cpp b/src/devices/sound/huc6230.cpp index 23155c4dc7f..9b77d1f83c0 100644 --- a/src/devices/sound/huc6230.cpp +++ b/src/devices/sound/huc6230.cpp @@ -13,13 +13,11 @@ #include "emu.h" #include "huc6230.h" -static const int clamp(int val, int min, int max) { return std::min(max,std::max(min,val)); } +constexpr int clamp(int val, int min, int max) { return std::min(max, std::max(min, val)); } void huc6230_device::sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) { - /* Clear buffer */ - int frq = (1 << m_adpcm_freq); for (int i = 0; i < samples; i++) { |