mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-28 09:27:39 +01:00
* midi_event_size(uchar status): return size including status / handle sysex
git-svn-id: svn://localhost/ardour2/branches/3.0@4486 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5e3cced3e7
commit
5c73fc42c4
4 changed files with 46 additions and 18 deletions
|
|
@ -249,7 +249,7 @@ SMF<T>::read_event(uint32_t* delta_t, uint32_t* size, uint8_t** buf) const
|
|||
}
|
||||
}
|
||||
|
||||
const int event_size = midi_event_size((unsigned char)status) + 1;
|
||||
const int event_size = midi_event_size((unsigned char)status);
|
||||
if (event_size <= 0) {
|
||||
*size = 0;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue