summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/netlist.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-05-25 23:56:24 +0200
committer couriersud <couriersud@gmx.org>2020-05-25 23:57:47 +0200
commitc432b50bda3c2318513b28de3d8a4c42f2cee176 (patch)
treea1ce8ea7e0d427e08ba1ce047e7afa0936d260ff /src/devices/machine/netlist.cpp
parentc78070781dce839ef3b7833a48e62a763cedbbd4 (diff)
netlist: move configuration entries into netlist namespace. (nw)
Diffstat (limited to 'src/devices/machine/netlist.cpp')
-rw-r--r--src/devices/machine/netlist.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/machine/netlist.cpp b/src/devices/machine/netlist.cpp
index 3060261187a..295c6e6fd4c 100644
--- a/src/devices/machine/netlist.cpp
+++ b/src/devices/machine/netlist.cpp
@@ -217,7 +217,7 @@ public:
NETLIB_UPDATEI()
{
- nl_fptype cur = m_in();
+ netlist::nl_fptype cur = m_in();
// FIXME: make this a parameter
// avoid calls due to noise
@@ -234,7 +234,7 @@ private:
netlist::analog_input_t m_in;
std::unique_ptr<netlist_mame_analog_output_device::output_delegate> m_callback; // TODO: change to std::optional for C++17
netlist_mame_cpu_device *m_cpu_device;
- netlist::state_var<nl_fptype> m_last;
+ netlist::state_var<netlist::nl_fptype> m_last;
};
// ----------------------------------------------------------------------------------------
@@ -456,7 +456,7 @@ protected:
NETLIB_UPDATEI()
{
- nl_fptype val = m_in() * m_mult() + m_offset();
+ netlist::nl_fptype val = m_in() * m_mult() + m_offset();
sound_update(exec().time());
/* ignore spikes */
if (plib::abs(val) < 32767.0)
@@ -557,7 +557,7 @@ protected:
{
if (m_channels[i].m_buffer == nullptr)
break; // stop, called outside of stream_update
- const nl_fptype v = m_channels[i].m_buffer[m_pos];
+ const netlist::nl_fptype v = m_channels[i].m_buffer[m_pos];
m_channels[i].m_param->set(v * (*m_channels[i].m_param_mult)() + (*m_channels[i].m_param_offset)());
}
}