-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
master
petern 2009-07-25 16:54:57 +00:00
parent f6bfe60a78
commit f2e073a383
1 changed files with 1 additions and 0 deletions

View File

@ -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;