Recent

Author Topic: MIDIPacket on Cocoa is returning invalid data.  (Read 1146 times)

josh

  • Hero Member
  • *****
  • Posts: 743
MIDIPacket on Cocoa is returning invalid data.
« on: January 10, 2019, 12:33:53 am »
Hi

I am having an issue retrieving midi packets on cocoa, when the packet is triggered the actual packet contains invalid/null data.

The same routines on carbon are working fine.

I suspect I am doing something wrong for cocoa to work, but I have spent many hrs now trying to track it down, as the adding breakpoint in the callback routine is being Fired and processed, but the data coming in is wrong.

Attached sample small project, you need a midi device,  click the button list and connect first device, then press a button on midi device/controller to send a midi cc/pc message. On carbon all is ok, on cocoa invalid data.

Hope someone has cocoa and a midi controller that can test this, also the send midi data is not working on cocoa.

« Last Edit: January 10, 2019, 12:36:15 am by josh »
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.