dplug v3.0.0, added Audio Unit support

Guillaume Piolat via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu May 12 01:29:35 PDT 2016


On Wednesday, 11 May 2016 at 15:52:06 UTC, Guillaume Piolat wrote:
> Audio Unit format has been implemented as of dplug version 3.

A technical hurdle was to be able to pass Objective-C classes 
implementing an Objective-C @protocol. @protocols are a bit like 
D interfaces for which the compiler creates dispatch tables at 
compile-time.

The solution is to create a similarly named @protocol with same 
methods to simulate this work, using the ObjC runtime.
https://github.com/p0nce/dplug/blob/master/au/dplug/au/cocoaviewfactory.d#L81




More information about the Digitalmars-d-announce mailing list