[MacRuby-devel] loop audio file seamlessly (Zachary Kaplan)
Ed Hynes
mred at dharmagaia.com
Thu Feb 24 13:07:17 PST 2011
Hi Zak,
I'm running MacRuby revision 5236 with BridgeSupport Preview 3 and the following script works fine:
framework 'AudioToolbox'
url = NSURL.fileURLWithPath "/test/loops/Lounge Vibes 01.caf"
audioFileID_ptr = Pointer.new_with_type '^{OpaqueAudioFileID}'
p AudioFileOpenURL url, KAudioFileReadPermission, 0, audioFileID_ptr
HTH,
Ed
On Feb 23, 2011, at 1:27 AM, Zachary Kaplan wrote:
> hello all,
>
> i received a suggestion from another member to check out the PlayFile
> example in the audio toolbox examples.
>
> while this was very helpful in putting me on the right track for basic
> low level audio manipulation, there are some additional related issues
> i've encountered in trying to port over the example to macruby.
>
> most notably, i don't seem to have some of the most important methods
> available such as AudioFileOpenURL.
>
> perhaps (most likely) i am just doing something wrong. i have bridge support 2.
>
> also if anyone has any macruby audio examples, i'd love to see what
> others have done.
>
> could anyone else provide some more insight?
>
> thanks in advance
> -zak
> _______________________________________________
> 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