Browse Source

AAX midi alignment workaround.

tags/2021-05-28
jules 13 years ago
parent
commit
69caaf68cc
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp

+ 4
- 1
modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp View File

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


Loading…
Cancel
Save