[MacRuby-devel] CoreAudio frameworks

Garett Shulman garett.shulman at gmail.com
Thu Jan 6 08:55:56 PST 2011


Thanks for the suggestion, Kyossi!  I found that  bridgesupport 2 includes bridgesupports for all of the system frameworks: http://bridgesupport.macosforge.org/trac/wiki/Releases
On Jan 5, 2011, at 9:35 AM, kyossi wrote:

> Hi,
> 
>> However, I do not see any struct definitions in the generated bridgesupport file.
> 
> I found past discussions about C-struct and .bridgesupport. hope this help.
> 
> [MacRuby-devel] How to use custom C struct's?
> http://www.mail-archive.com/macruby-devel@lists.macosforge.org/msg01492.html
> 
> 
> 2011/1/5 Garett Shulman <garett.shulman at gmail.com>:
>> Hello, is it possible to use CoreAudio frameworks from MacRuby?  I am trying the following simple experiment:
>> irb(main):001:0> framework 'AudioUnit'
>> => true
>> irb(main):002:0> load_bridge_support_file 'AudioUnit.bridgesupport'
>> => main
>> irb(main):003:0> AudioComponentFindNext(nil, [KAudioUnitType_Generator])
>> TypeError: unrecognized runtime type `{AudioComponentDescription=IIIII}'
>> 
>> I create the bridgesupport file with: gen_bridge_metadata --64-bit -f AudioUnit -o AudioUnit.bridgesupport
>> 
>> However, I do not see any struct definitions in the generated bridgesupport file.  If anyone has thoughts about documentation resources which may be illuminating or any other insights or suggestions they would be greatly appreciated.
>> 
>> Thanks! -Garett
>> 
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



More information about the MacRuby-devel mailing list