summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emu/schedule.c2
-rw-r--r--src/emu/sound.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/schedule.c b/src/emu/schedule.c
index 28973616272..3b480d4c3c3 100644
--- a/src/emu/schedule.c
+++ b/src/emu/schedule.c
@@ -941,7 +941,7 @@ inline void device_scheduler::execute_timers()
void device_scheduler::add_scheduling_quantum(const attotime &quantum, const attotime &duration)
{
- assert(quantum.seconds == 0);
+ assert(quantum.seconds() == 0);
attotime curtime = time();
attotime expire = curtime + duration;
diff --git a/src/emu/sound.c b/src/emu/sound.c
index fe5638be358..84ab4821c7c 100644
--- a/src/emu/sound.c
+++ b/src/emu/sound.c
@@ -270,14 +270,14 @@ void sound_stream::update()
attotime last_update = m_device.machine().sound().last_update();
if (time.seconds() > last_update.seconds())
{
- assert(time.seconds == last_update.seconds + 1);
+ assert(time.seconds() == last_update.seconds() + 1);
update_sampindex += m_sample_rate;
}
// if we're behind the last update, then adjust downwards
if (time.seconds() < last_update.seconds())
{
- assert(time.seconds == last_update.seconds - 1);
+ assert(time.seconds() == last_update.seconds() - 1);
update_sampindex -= m_sample_rate;
}
@@ -1085,7 +1085,7 @@ void sound_manager::update(void *ptr, int param)
bool second_tick = false;
if (curtime.seconds() != m_last_update.seconds())
{
- assert(curtime.seconds == m_last_update.seconds + 1);
+ assert(curtime.seconds() == m_last_update.seconds() + 1);
second_tick = true;
}