mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-10 08:33:36 +02:00
Restore Audacity xcode project (undoing accidentally committed OS X 10.6 changes in revision 10695). Fix some midi playback problems.
This commit is contained in:
@@ -475,7 +475,6 @@ send_packet(PmInternal *midi, Byte *message, unsigned int messageLength,
|
||||
midi_macosxcm_type m = (midi_macosxcm_type) midi->descriptor;
|
||||
assert(m);
|
||||
|
||||
/* printf("add %d to packet %lx len %d\n", message[0], m->packet, messageLength); */
|
||||
m->packet = MIDIPacketListAdd(m->packetList, sizeof(m->packetBuffer),
|
||||
m->packet, timestamp, messageLength,
|
||||
message);
|
||||
|
@@ -3434,12 +3434,12 @@ Alg_event_ptr Alg_iterator::next(bool *note_on, void **cookie_ptr,
|
||||
insert(events_ptr, index, false, cookie, offset);
|
||||
}
|
||||
// for both note-ons and updates, insert next event (at index + 1)
|
||||
index++;
|
||||
if (index < events_ptr->length() &&
|
||||
// DO NOT INCREMENT index: it must be preserved for request_note_off()
|
||||
if (index + 1 < events_ptr->length() &&
|
||||
(end_time == 0 || // zero means ignore end time
|
||||
// stop iterating when end time is reached
|
||||
(*events_ptr)[index]->time + offset < end_time)) {
|
||||
insert(events_ptr, index, true, cookie, offset);
|
||||
(*events_ptr)[index + 1]->time + offset < end_time)) {
|
||||
insert(events_ptr, index + 1, true, cookie, offset);
|
||||
}
|
||||
}
|
||||
if (cookie_ptr) *cookie_ptr = cookie;
|
||||
|
Reference in New Issue
Block a user