Shaun August, I have previously come across the same suggestion you mentioned: using QTKit's QTMovie class for playing/looping audio.
After implementing the QTKit approach which you can see here: https://github.com/razic/virus/blob/master/loop.rb the pause between each loop iteration was either the same or worse than a basic NSSound object with loops = true. Neither the NSSound or the QTMovie are sufficient for seamless looping. However, the Apple PlayFile example which I built/compiled in Xcode DOES loop perfectly seamless. How come I can't access a lot of the methods you see in the PlayFile example, even after loading the necessary frameworks? (I have BridgeSupport 2) I hope I'm simply doing something wrong. Would really appreciate anyone who can provide any sort of insight into converting PlayFile to macruby. PlayFile can be found here: http://developer.apple.com/library/mac/#samplecode/PlayFile/Introduction/Intro.html Thanks in advance, Zak On Wed, Feb 23, 2011 at 3:18 PM, <macruby-devel-requ...@lists.macosforge.org> wrote: > Send MacRuby-devel mailing list submissions to > macruby-devel@lists.macosforge.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > or, via email, send a message with subject or body 'help' to > macruby-devel-requ...@lists.macosforge.org > > You can reach the person managing the list at > macruby-devel-ow...@lists.macosforge.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of MacRuby-devel digest..." > > > Today's Topics: > > 1. Re: loop audio file seamlessly (Zachary Kaplan) (Shaun August) > 2. NoMethodError (ib_outlets) (Rob Gleeson) > 3. Re: NoMethodError (ib_outlets) (Robert Payne) > 4. Re: NoMethodError (ib_outlets) (Laurent Sansonetti) > 5. Re: 0.9 update (Laurent Sansonetti) > 6. Re: NoMethodError (ib_outlets) (Rob Gleeson) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 23 Feb 2011 10:13:57 -0800 > From: Shaun August <saug...@me.com> > To: "MacRuby development discussions." > <macruby-devel@lists.macosforge.org> > Cc: "macruby-devel@lists.macosforge.org" > <macruby-devel@lists.macosforge.org> > Subject: Re: [MacRuby-devel] loop audio file seamlessly (Zachary > Kaplan) > Message-ID: <78467b80-e4ab-407d-80bf-97cd162f2...@me.com> > Content-Type: text/plain; CHARSET=US-ASCII > > 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 <ra...@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 > > > ------------------------------ > > Message: 2 > Date: Wed, 23 Feb 2011 21:57:35 +0000 > From: Rob Gleeson <r...@flowof.info> > To: "MacRuby development discussions." > <macruby-devel@lists.macosforge.org> > Subject: [MacRuby-devel] NoMethodError (ib_outlets) > Message-ID: <64937216-981f-4469-bb80-c76c98e78...@flowof.info> > Content-Type: text/plain; charset=us-ascii > > Hi > > I'm giving my first MacRuby application a shot, and I'm sort of blind to be > honest :) > I've added a NSWindowController, attached it to my window, saved the classes > in Interface Builder, but when I build and run my application, I get a > NoMethodError for 'ib_outlets'. > > My controller inherits from NSResponder. > > The stranger thing is, I guess, when I remove any code referencing > ib_outlets, the same error is raised again. NoMethodError. > > Any advice? What class defines ib_outlets? Am I doing it completely wrong? > Thanks. > > -- > Rob > > > > > > > > ------------------------------ > > Message: 3 > Date: Thu, 24 Feb 2011 11:08:59 +1300 > From: Robert Payne <robertpa...@me.com> > To: "MacRuby development discussions." > <macruby-devel@lists.macosforge.org> > Subject: Re: [MacRuby-devel] NoMethodError (ib_outlets) > Message-ID: <f8170b8f-e4e2-4849-bfcb-c431c1378...@me.com> > Content-Type: text/plain; CHARSET=US-ASCII > > Hey Rob, > > Could you by chance upload the source to github or somewhere? It'd be a lot > easier to help seeing the whole picture. > > -Robert > > On Feb 24, 2011, at 10:57 AM, Rob Gleeson wrote: > >> Hi >> >> I'm giving my first MacRuby application a shot, and I'm sort of blind to be >> honest :) >> I've added a NSWindowController, attached it to my window, saved the classes >> in Interface Builder, but when I build and run my application, I get a >> NoMethodError for 'ib_outlets'. >> >> My controller inherits from NSResponder. >> >> The stranger thing is, I guess, when I remove any code referencing >> ib_outlets, the same error is raised again. NoMethodError. >> >> Any advice? What class defines ib_outlets? Am I doing it completely wrong? >> Thanks. >> >> -- >> Rob >> >> >> >> >> >> _______________________________________________ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > > > ------------------------------ > > Message: 4 > Date: Wed, 23 Feb 2011 14:13:51 -0800 > From: Laurent Sansonetti <lsansone...@apple.com> > To: "MacRuby development discussions." > <macruby-devel@lists.macosforge.org> > Subject: Re: [MacRuby-devel] NoMethodError (ib_outlets) > Message-ID: <e5824773-93c4-4ede-8fbc-64da6cd22...@apple.com> > Content-Type: text/plain; charset="us-ascii" > > Hi Rob, > > ib_outlets is an old RubyCocoa craft that is not supported in MacRuby since a > long time. You can define IB outlets using the attr_writer or attr_accessor > methods. You can define IB actions by defining methods accepting a single > argument, named 'sender'. > > There are lots of documentation about this on the net. Here is a pointer to a > nice tutorial that you might be interested to follow. > > http://blog.phusion.nl/2010/03/12/creating-our-very-first-mac-application-with-ruby-how-exciting/#more-509 > > Laurent > > On Feb 23, 2011, at 1:57 PM, Rob Gleeson wrote: > >> Hi >> >> I'm giving my first MacRuby application a shot, and I'm sort of blind to be >> honest :) >> I've added a NSWindowController, attached it to my window, saved the classes >> in Interface Builder, but when I build and run my application, I get a >> NoMethodError for 'ib_outlets'. >> >> My controller inherits from NSResponder. >> >> The stranger thing is, I guess, when I remove any code referencing >> ib_outlets, the same error is raised again. NoMethodError. >> >> Any advice? What class defines ib_outlets? Am I doing it completely wrong? >> Thanks. >> >> -- >> Rob >> >> >> >> >> >> _______________________________________________ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110223/87bcf0ca/attachment-0001.html> > > ------------------------------ > > Message: 5 > Date: Wed, 23 Feb 2011 14:14:36 -0800 > From: Laurent Sansonetti <lsansone...@apple.com> > To: "MacRuby development discussions." > <macruby-devel@lists.macosforge.org> > Subject: Re: [MacRuby-devel] 0.9 update > Message-ID: <b1cb628d-5357-4223-82d2-d1b4ab9dc...@apple.com> > Content-Type: text/plain; charset="us-ascii" > > Hi Thomas, > > Yes that would be awesome! Please file a new ticket and attach your sample > there, and we will review and add it to the samples repository :) > > Laurent > > On Feb 23, 2011, at 12:25 AM, Thomas R. Koll wrote: > >> >> Great timing, I've switched from 0.8 to edge just a few days ago due to >> a bug that was fixed two days after 0.8 came out. :) >> >> Btw, can I contribute an example of a StatusBarMenu with a custom view in >> one of the menuitems? >> >> ciao, tom >> >> >> Am 22.02.2011 um 23:20 schrieb Laurent Sansonetti: >> >>> Hi guys, >>> >>> 0.9 is now ready to be released! (really!). The trunk branch has been >>> copied as branches/0.9 and we will continue the development on trunk, which >>> now uses the 0.10 version number. >>> >>> It would be nice if you could try the latest nightly build with your app >>> and favorite Ruby lib, and let me know if you find anything wrong, as I had >>> to change (again) the const lookup rules to fix a regression. yesterday. I >>> did a bit of testing and I'm confident the fix is good, but I would prefer >>> to see more testing. >>> >>> http://www.macruby.org/files/nightlies/macruby_nightly-2011-02-22.pkg >>> >>> If I don't hear anything bad, 0.9 will be released Friday :) >> >> _______________________________________________ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110223/044b493f/attachment-0001.html> > > ------------------------------ > > Message: 6 > Date: Wed, 23 Feb 2011 23:18:23 +0000 > From: Rob Gleeson <r...@flowof.info> > To: "MacRuby development discussions." > <macruby-devel@lists.macosforge.org> > Subject: Re: [MacRuby-devel] NoMethodError (ib_outlets) > Message-ID: <87b213f0-2896-42d3-993a-3fc90e5e6...@flowof.info> > Content-Type: text/plain; charset="us-ascii" > > Hi Laurent & Robert, > > Thanks! I'm going places now :) > > On 23 Feb 2011, at 22:13, Laurent Sansonetti wrote: > >> Hi Rob, >> >> ib_outlets is an old RubyCocoa craft that is not supported in MacRuby since >> a long time. You can define IB outlets using the attr_writer or >> attr_accessor methods. You can define IB actions by defining methods >> accepting a single argument, named 'sender'. >> >> There are lots of documentation about this on the net. Here is a pointer to >> a nice tutorial that you might be interested to follow. >> >> http://blog.phusion.nl/2010/03/12/creating-our-very-first-mac-application-with-ruby-how-exciting/#more-509 >> >> Laurent >> >> On Feb 23, 2011, at 1:57 PM, Rob Gleeson wrote: >> >>> Hi >>> >>> I'm giving my first MacRuby application a shot, and I'm sort of blind to be >>> honest :) >>> I've added a NSWindowController, attached it to my window, saved the >>> classes in Interface Builder, but when I build and run my application, I >>> get a >>> NoMethodError for 'ib_outlets'. >>> >>> My controller inherits from NSResponder. >>> >>> The stranger thing is, I guess, when I remove any code referencing >>> ib_outlets, the same error is raised again. NoMethodError. >>> >>> Any advice? What class defines ib_outlets? Am I doing it completely wrong? >>> Thanks. >>> >>> -- >>> Rob >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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 > > -- > Rob > > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110223/ae80fe84/attachment.html> > > ------------------------------ > > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > > End of MacRuby-devel Digest, Vol 36, Issue 42 > ********************************************* > _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel