OSX 64bit - MIDIServices.pas - MIDIPacket && MIDIPacketList pack record fix

This commit is contained in:
Kirill Kranz 2023-06-20 12:01:20 +02:00 committed by Nikolay Nikolov
parent 2e5c62e086
commit 68ad000a34

View File

@ -577,12 +577,15 @@ type
situations.) situations.)
} }
{$push}
{$packrecords 4}
MIDIPacket = record MIDIPacket = record
timeStamp: MIDITimeStamp; timeStamp: MIDITimeStamp;
length: UInt16; length: UInt16;
data: packed array [0..255] of Byte; data: packed array [0..255] of Byte;
end; end;
MIDIPacketPtr = ^MIDIPacket; MIDIPacketPtr = ^MIDIPacket;
{$pop}
{! {!
@struct MIDIPacketList @struct MIDIPacketList
@ -614,10 +617,14 @@ type
An open-ended array of variable-length MIDIPackets. An open-ended array of variable-length MIDIPackets.
} }
{$push}
{$packrecords 4}
MIDIPacketList = record MIDIPacketList = record
numPackets: UInt32; numPackets: UInt32;
packet: array [0..0] of MIDIPacket; packet: array [0..0] of MIDIPacket;
end; end;
{$pop}
{$ALIGN POWER} {$ALIGN POWER}
{! {!