Re: [MacRuby-devel] loop audio file seamlessly (Zachary Kaplan)
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
Hi Zak, Try looking at the QTMovie. It is much more reliable and handles audio well. If you need a sample I can post something tonight. Thank you, On 2011-02-22, at 10:27 PM, Zachary Kaplan <razic@viralkitty.com> 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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (3)
-
Ed Hynes
-
Shaun August
-
Zachary Kaplan