mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 04:39:33 +01:00
#ifdef out some expensive code from midibuffer merging (debug only, and we pretty much know it works)
git-svn-id: svn://localhost/ardour2/branches/3.0@10733 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e0ebeb3d5d
commit
22f6b99130
1 changed files with 4 additions and 0 deletions
|
|
@ -284,6 +284,7 @@ MidiBuffer::merge_in_place(const MidiBuffer &other)
|
|||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#ifdef TEST_MIDI_MERGE
|
||||
size_t test_orig_us_size = _size;
|
||||
size_t test_orig_them_size = other._size;
|
||||
TimeType test_time = 0;
|
||||
|
|
@ -302,6 +303,7 @@ MidiBuffer::merge_in_place(const MidiBuffer &other)
|
|||
test_time = (*i).time();
|
||||
++test_them_count;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
const_iterator them = other.begin();
|
||||
|
|
@ -362,6 +364,7 @@ MidiBuffer::merge_in_place(const MidiBuffer &other)
|
|||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#ifdef TEST_MIDI_MERGE
|
||||
assert(_size == test_orig_us_size + test_orig_them_size);
|
||||
size_t test_final_count = 0;
|
||||
test_time = 0;
|
||||
|
|
@ -373,6 +376,7 @@ MidiBuffer::merge_in_place(const MidiBuffer &other)
|
|||
++test_final_count;
|
||||
}
|
||||
assert(test_final_count = test_us_count + test_them_count);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue