diff options
Diffstat (limited to 'src/devices/sound/discrete.cpp')
-rw-r--r-- | src/devices/sound/discrete.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/devices/sound/discrete.cpp b/src/devices/sound/discrete.cpp index 9bf5d4d470f..3a52c8b0eb0 100644 --- a/src/devices/sound/discrete.cpp +++ b/src/devices/sound/discrete.cpp @@ -110,7 +110,7 @@ public: virtual ~discrete_task(void) { } inline void step_nodes(void); - inline bool lock_threadid(INT32 threadid) + inline bool lock_threadid(int32_t threadid) { int expected = -1; return m_threadid.compare_exchange_weak(expected, threadid, std::memory_order_release,std::memory_order_relaxed); @@ -145,7 +145,7 @@ protected: discrete_device & m_device; private: - std::atomic<INT32> m_threadid; + std::atomic<int32_t> m_threadid; volatile int m_samples; }; @@ -613,9 +613,9 @@ void discrete_device::discrete_sanity_check(const sound_block_list_t &block_list * *************************************/ -static UINT64 list_run_time(const node_list_t &list) +static uint64_t list_run_time(const node_list_t &list) { - UINT64 total = 0; + uint64_t total = 0; for_each(discrete_base_node **, node, &list) { @@ -626,9 +626,9 @@ static UINT64 list_run_time(const node_list_t &list) return total; } -static UINT64 step_list_run_time(const node_step_list_t &list) +static uint64_t step_list_run_time(const node_step_list_t &list) { - UINT64 total = 0; + uint64_t total = 0; for_each(discrete_step_interface **, node, &list) { @@ -640,8 +640,8 @@ static UINT64 step_list_run_time(const node_step_list_t &list) void discrete_device::display_profiling(void) { int count; - UINT64 total; - UINT64 tresh; + uint64_t total; + uint64_t tresh; double tt; /* calculate total time */ @@ -835,7 +835,7 @@ void discrete_device::static_set_intf(device_t &device, const discrete_block *in // discrete_device - constructor //------------------------------------------------- -discrete_device::discrete_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) +discrete_device::discrete_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, type, name, tag, owner, clock, "discrete", __FILE__), m_intf(nullptr), m_sample_rate(0), @@ -850,7 +850,7 @@ discrete_device::discrete_device(const machine_config &mconfig, device_type type { } -discrete_sound_device::discrete_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) +discrete_sound_device::discrete_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : discrete_device(mconfig, DISCRETE, "DISCRETE", tag, owner, clock), device_sound_interface(mconfig, *this), m_stream(nullptr) @@ -1102,7 +1102,7 @@ READ8_MEMBER( discrete_device::read ) { const discrete_base_node *node = discrete_find_node(offset); - UINT8 data; + uint8_t data; /* Read the node input value if allowed */ if (node) @@ -1110,7 +1110,7 @@ READ8_MEMBER( discrete_device::read ) /* Bring the system up to now */ update_to_current_time(); - data = (UINT8) node->m_output[NODE_CHILD_NODE_NUM(offset)]; + data = (uint8_t) node->m_output[NODE_CHILD_NODE_NUM(offset)]; } else fatalerror("discrete_sound_r read from non-existent NODE_%02d\n", offset-NODE_00); |