|
|
|
@@ -577,7 +577,10 @@ struct AAXClasses |
|
|
|
|
|
|
|
for (uint32_t i = 0; i < numMidiEvents; ++i)
|
|
|
|
{
|
|
|
|
const AAX_CMidiPacket& m = midiStream->mBuffer[i];
|
|
|
|
// (This 8-byte alignment is a workaround to a bug in the AAX SDK. Hopefully can be
|
|
|
|
// removed in future when the packet structure size is fixed)
|
|
|
|
const AAX_CMidiPacket& m = *addBytesToPointer (midiStream->mBuffer,
|
|
|
|
i * ((sizeof (AAX_CMidiPacket) + 7) & ~7));
|
|
|
|
jassert ((int) m.mTimestamp < bufferSize);
|
|
|
|
midiBuffer.addEvent (m.mData, (int) m.mLength,
|
|
|
|
jlimit (0, (int) bufferSize - 1, (int) m.mTimestamp));
|
|
|
|
|