1
0
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:
rbdannenberg
2010-10-01 15:26:46 +00:00
parent 339303e7ec
commit 576dfe6653
4 changed files with 25 additions and 29 deletions

View File

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

View File

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