[MacRuby-devel] [MacRuby] #733: Proc as callback function for CoreAudio(AudioDeviceCreateIOProcID) isn't called
MacRuby
ruby-noreply at macosforge.org
Tue Jun 1 19:13:41 PDT 2010
#733: Proc as callback function for CoreAudio(AudioDeviceCreateIOProcID) isn't
called
-----------------------------------+----------------------------------------
Reporter: nagachika00@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
-----------------------------------+----------------------------------------
Comment(by martinlagardette@…):
The problem comes from multiple things actually:
- The CoreAudio BridgeSupport file is incorrect. The
`AudioDeviceCreateIOProcID` function is said to receive `^?` (pointer to
something unknow), when it shall say a pointer to a function, because
`AudioDeviceIOProcID` is actually typedef-ed to a function pointer.
- MacRuby's BridgeSupport parser doesn't support pointers to function
pointers. I have a local patch that fixes that, and might commit later,
but:
- MacRuby doesn't know yet how to convert a C function pointer to a Ruby
Proc. I'll try to see if I can do that.
In any case, even if I fix the two MacRuby's problems, CoreAudio's
BridgeSupport is not correct and will have to be modified manually for it
to work.
--
Ticket URL: <http://www.macruby.org/trac/ticket/733#comment:1>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list