From f2e073a3839ac8e1b2eacabfc48997b0d89d7734 Mon Sep 17 00:00:00 2001 From: petern Date: Sat, 25 Jul 2009 16:54:57 +0000 Subject: [PATCH] -Change: Adjust recording timer so that the first event is at timestamp 0, instead of the timestamp within the jack frame. git-svn-id: http://svn.fuzzle.org/mloop/trunk@36 ba049829-c6ef-42ef-81ac-908dd8d2e907 --- src/jack.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jack.cpp b/src/jack.cpp index 7688309..0b80057 100644 --- a/src/jack.cpp +++ b/src/jack.cpp @@ -98,6 +98,7 @@ int Jack::ProcessCallback(jack_nframes_t nframes) m_notecache.HandleEvent(ev); if (m_recording) { + if (m_delay_record) m_recording_time = -ev.time; ev.time += m_recording_time; if (m_loop_buffer->PushEvent(ev)) { m_delay_record = false;