From 9f7bcbd886ba69bccd9180ded7cfbd112f02b23b Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Wed, 29 Aug 2018 05:29:50 +1000 Subject: final cleanup (nw) --- src/devices/sound/huc6230.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/devices/sound/huc6230.cpp') 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++) { -- cgit v1.2.3