if (curPacket->length == 0) {
curPacket->timeStamp = time;
// try to start new packet
} else if (time == curPacket->timeStamp && data[0] >= 0x80 && data[0] < 0xF0
&& curPacket->data[0] >= 0x80 && curPacket->data[0] < 0xF0) {
// try to add to this packet
} else {
// need to add new packet
}
I don't have time to figure out what the else if() case is checking for right now, but 'data' is your passed-in data, and 'time' and 'curPacket' are also passed in args.
In the whichever case is used from above, the passed-in time is later assigned to the packet's timestamp, so subsequent calls to this with the same packet will have
non-zero timestamps. Does your data match the second case above?
-DS
Hi Douglas,
Thanks for the reply.
I'm doing this :
- (void) addPacketToPacketList:(Byte*) data ofLength:(int) len {
NSLog(@"%lld", mach_absolute_time());
currentPacket = MIDIPacketListAdd(packetList, PACKETLIST_SIZE, currentPacket, mach_absolute_time, len, data);
if (!currentPacket) exit(1);
}
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden