ARM 32bit enum alignment (used in MIDIBuffer)

Evoral::EventType is written directly into a uint8_t buffer
by dereferncing a pointer-type:
*(reinterpret_cast<Evoral::EventType*>((uintptr_t)...)
This commit is contained in:
Robin Gareus 2020-09-28 00:19:36 +02:00
parent 37ec50cbf8
commit 7e1ce160e9
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -52,7 +52,10 @@ typedef int32_t event_id_t;
enum EventType { enum EventType {
NO_EVENT, NO_EVENT,
MIDI_EVENT, MIDI_EVENT,
LIVE_MIDI_EVENT LIVE_MIDI_EVENT,
#if defined(__arm__) || defined(__aarch64__)
_Force32BitAlignment = 0xffffffff
#endif
}; };
/** Type of a parameter (opaque, mapped by application, e.g. gain) */ /** Type of a parameter (opaque, mapped by application, e.g. gain) */