[MacRuby-devel] has anyone played with audio frameworks?

Laurent Sansonetti lsansonetti at apple.com
Sat May 29 14:29:33 PDT 2010


Hi!

On May 29, 2010, at 6:21 AM, nagachika wrote:

> Hi,
> I'm nagachika from Japan. I'm glad to find who interested in audio
> frameworks in this ML!
> 
> If what you want is just play audio format file, using NSSound may be
> easiest way to do it.
> 
> I'm just trying to use CoreAudio framework with MacRuby to control
> audio devices.
> I can get/set some property of audio devices. For example get audio devices list
> and change sampling rate of them.
> But I cannot output waveform data to audio output device.
> It seems than Proc registered as callback function isn't called.
> I just want to file a ticket about it.

Please do! We will investigate why the proc isn't being called. The Proc -> function pointer machinery is pretty new so maybe there are a few bugs around :-)

It would be great to have a sample project using CoreAudio at some point.

> BTW, I would like to try use AudioUnit framework via MacRuby.
> AudioUnit has no BridgeSupport file in system directories.
> But I found 'gen_bridge_metadata' recently, I think MacRuby can use
> AudioUnit too.

It may work, but the current gen_bridge_metadata script is quite fragile and is full of bugs. Internally we have been rewriting it with much better foundations (clang) and we hope to publish the new version on macosforge in the future.

Laurent


More information about the MacRuby-devel mailing list