Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76ade1a4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "aaudio: align AAudioServiceMessage for 32/64 bits" into rvc-dev am: 9ad15ff8

Change-Id: I4654ab155cb5f87c1d3cc7e3be8973ab220fc34f
parents b5865bba 9ad15ff8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -44,6 +44,8 @@ typedef enum aaudio_service_event_e : uint32_t {
struct AAudioMessageEvent {
    aaudio_service_event_t event;
    union {
        // Align so that 32 and 64-bit code can exchange messages through shared memory.
        alignas(8)
        double  dataDouble;
        int64_t dataLong;
    };
@@ -59,6 +61,8 @@ typedef struct AAudioServiceMessage_s {

    code      what;
    union {
        // Align so that 32 and 64-bit code can exchange messages through shared memory.
        alignas(8)
        AAudioMessageTimestamp timestamp; // what == TIMESTAMP
        AAudioMessageEvent event;         // what == EVENT
    };