Re: [MacRuby-devel] CoreAudio frameworks
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
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@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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
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@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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (2)
-
Garett Shulman
-
kyossi