diff options
author | 2015-08-16 10:03:05 +0200 | |
---|---|---|
committer | 2015-08-16 10:03:05 +0200 | |
commit | 7d3759783b6dabf8a21819c5abcc6147d2ac63c2 (patch) | |
tree | 889e625a7dbf95d15405a5f3ac28594902de20b3 /src | |
parent | b41d805444bbbd6b0bf9d273b9d7aebeb891a352 (diff) |
Fix debug build. (nw)
Diffstat (limited to 'src')
-rw-r--r-- | src/emu/schedule.c | 2 | ||||
-rw-r--r-- | src/emu/sound.c | 6 |
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; } |