Recent

Author Topic: Midi Packet Size is different between 32carbon and 64 bit cocoa  (Read 945 times)

josh

  • Hero Member
  • *****
  • Posts: 754
Re: Midi Packet Size is different between 32carbon and 64 bit cocoa
« Reply #15 on: June 22, 2019, 08:51:21 am »
Hi

Thanks everyone for their input.

I managed to rebuild the modification and everythiong is now working correctly.
I have created a bug tracker entry

https://bugs.freepascal.org/view.php?id=35750
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

Thaddy

  • Hero Member
  • *****
  • Posts: 8919
Re: Midi Packet Size is different between 32carbon and 64 bit cocoa
« Reply #16 on: June 22, 2019, 10:42:02 am »
I have repeated my comments on the bug tracker. (And I checked the record sizes on my mini Mac)
The pack size is wrong: that is programmer error and not a bug.
Again: midi is a streaming protocol and does not allow slack space. Record packing should be byte aligned. Always.
< RTFM  >:D >:D>

What you seem to forget is that natural alignment between 32 and 64 bitness is not equal.
« Last Edit: June 22, 2019, 10:45:29 am by Thaddy »
Most people that want to use threading should learn to patch their jeans first: use a needle.