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:
parent
37ec50cbf8
commit
7e1ce160e9
@ -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) */
|
||||||
|
Loading…
Reference in New Issue
Block a user