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,
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
> To: "MacRuby development discussions."
>
> Cc: "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 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 +
> From: Rob Gleeson
> To: "MacRuby development discussions."
>
> 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
>
>
>
>
>
>
>
> ---