summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound')
-rw-r--r--src/devices/sound/huc6230.cpp4
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++)
{