Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?
AudioQueueTimelineRef does not seem like it would let me make calls against it, so much as receive notifications from it. Do I have the wrong timeline or am I misunderstanding AudioQueueTimelineRef or am I completely missing the timeline you are talking about? On Fri, Jan 16, 2009 at 12:56 PM, Kyle Sluder wrote: > On Fri, Jan 16, 2009 at 1:39 PM, Adam Venturella > wrote: >> Set the volume on an Audio Queue (make a fade out/fade in) > > Are you sure you want to tie automation of an audio queue property to > a timeline other than the one the audio queue follows? Since audio > queues have a timeline, you should probably consider using it. > > --Kyle Sluder > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?
On Fri, Jan 16, 2009 at 1:39 PM, Adam Venturella wrote: > Set the volume on an Audio Queue (make a fade out/fade in) Are you sure you want to tie automation of an audio queue property to a timeline other than the one the audio queue follows? Since audio queues have a timeline, you should probably consider using it. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?
There are likely some Core Audio gurus around the list that can help you with that. I'm not terribly familiar with it. I know you can use QTKit to load and play back audio files. The QTMovie object has a function called - (void)setVolume:(float)volume. -Matt On Jan 16, 2009, at 11:39 AM, Adam Venturella wrote: Set the volume on an Audio Queue (make a fade out/fade in) So on the interval, I will call: AudioQueueSetParameter (queueObject, kAudioQueueParam_Volume, value ); Where value is 0-1 On Fri, Jan 16, 2009 at 10:34 AM, Matt Long > wrote: Yes. It's what they're made for. What are you trying to do? -Matt On Jan 16, 2009, at 11:23 AM, Adam Venturella wrote: So something like this would be better served with an NSTimer I take it? On Fri, Jan 16, 2009 at 9:54 AM, Matt Long > wrote: Because you can't. These are the only properties you can animate: http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html -Matt On Jan 16, 2009, at 10:46 AM, Adam Venturella wrote: Basically, I was thinking: Hey, why can't I use CABasicAnimation as a means to animate just a value, not tied to a layer or a view, eg: If my CABasicAnimation duration is 1 second, and it's fromValue = 0 and it's toValue = 1 and say the interval was 100 milliseconds my value should increment by 0.10 every 100 milliseconds. So at 5 seconds my value should be 0.50 Now I could use an NSTimer to do this same thing I suppose, but I figured since Core Animation was already setup to handle things like this, why not use that. So my question is, is this even possible? Should I stop trying with this approach? Not looking for a how do I do this, more of a yes or no answer, I would like to figure it out on my own. Just want to make sure I am not barking up the wrong tree to begin with. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/matt.long%40matthew-long.com This email sent to matt.l...@matthew-long.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/matt.long%40matthew-long.com This email sent to matt.l...@matthew-long.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?
Set the volume on an Audio Queue (make a fade out/fade in) So on the interval, I will call: AudioQueueSetParameter (queueObject, kAudioQueueParam_Volume, value ); Where value is 0-1 On Fri, Jan 16, 2009 at 10:34 AM, Matt Long wrote: > Yes. It's what they're made for. What are you trying to do? > > -Matt > > > On Jan 16, 2009, at 11:23 AM, Adam Venturella wrote: > >> So something like this would be better served with an NSTimer I take it? >> >> On Fri, Jan 16, 2009 at 9:54 AM, Matt Long >> wrote: >>> >>> Because you can't. These are the only properties you can animate: >>> >>> >>> http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html >>> >>> -Matt >>> >>> >>> On Jan 16, 2009, at 10:46 AM, Adam Venturella wrote: >>> Basically, I was thinking: Hey, why can't I use CABasicAnimation as a means to animate just a value, not tied to a layer or a view, eg: If my CABasicAnimation duration is 1 second, and it's fromValue = 0 and it's toValue = 1 and say the interval was 100 milliseconds my value should increment by 0.10 every 100 milliseconds. So at 5 seconds my value should be 0.50 Now I could use an NSTimer to do this same thing I suppose, but I figured since Core Animation was already setup to handle things like this, why not use that. So my question is, is this even possible? Should I stop trying with this approach? Not looking for a how do I do this, more of a yes or no answer, I would like to figure it out on my own. Just want to make sure I am not barking up the wrong tree to begin with. >>> >> ___ >> >> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >> >> Please do not post admin requests or moderator comments to the list. >> Contact the moderators at cocoa-dev-admins(at)lists.apple.com >> >> Help/Unsubscribe/Update your Subscription: >> >> http://lists.apple.com/mailman/options/cocoa-dev/matt.long%40matthew-long.com >> >> This email sent to matt.l...@matthew-long.com > > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?
Yes. It's what they're made for. What are you trying to do? -Matt On Jan 16, 2009, at 11:23 AM, Adam Venturella wrote: So something like this would be better served with an NSTimer I take it? On Fri, Jan 16, 2009 at 9:54 AM, Matt Long long.com> wrote: Because you can't. These are the only properties you can animate: http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html -Matt On Jan 16, 2009, at 10:46 AM, Adam Venturella wrote: Basically, I was thinking: Hey, why can't I use CABasicAnimation as a means to animate just a value, not tied to a layer or a view, eg: If my CABasicAnimation duration is 1 second, and it's fromValue = 0 and it's toValue = 1 and say the interval was 100 milliseconds my value should increment by 0.10 every 100 milliseconds. So at 5 seconds my value should be 0.50 Now I could use an NSTimer to do this same thing I suppose, but I figured since Core Animation was already setup to handle things like this, why not use that. So my question is, is this even possible? Should I stop trying with this approach? Not looking for a how do I do this, more of a yes or no answer, I would like to figure it out on my own. Just want to make sure I am not barking up the wrong tree to begin with. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/matt.long%40matthew-long.com This email sent to matt.l...@matthew-long.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?
So something like this would be better served with an NSTimer I take it? On Fri, Jan 16, 2009 at 9:54 AM, Matt Long wrote: > Because you can't. These are the only properties you can animate: > > http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html > > -Matt > > > On Jan 16, 2009, at 10:46 AM, Adam Venturella wrote: > >> Basically, I was thinking: Hey, why can't I use CABasicAnimation as a >> means to animate just a value, not tied to a layer or a view, eg: >> >> If my CABasicAnimation duration is 1 second, and it's fromValue = 0 >> and it's toValue = 1 and say the interval was 100 milliseconds >> my value should increment by 0.10 every 100 milliseconds. >> So at 5 seconds my value should be 0.50 >> >> Now I could use an NSTimer to do this same thing I suppose, but I >> figured since Core Animation was already setup to handle things like >> this, why not use that. >> >> So my question is, is this even possible? Should I stop trying with >> this approach? Not looking for a how do I do this, more of a yes or >> no answer, I would like to figure it out on my own. Just want to make >> sure I am not barking up the wrong tree to begin with. > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?
Because you can't. These are the only properties you can animate: http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html -Matt On Jan 16, 2009, at 10:46 AM, Adam Venturella wrote: Basically, I was thinking: Hey, why can't I use CABasicAnimation as a means to animate just a value, not tied to a layer or a view, eg: If my CABasicAnimation duration is 1 second, and it's fromValue = 0 and it's toValue = 1 and say the interval was 100 milliseconds my value should increment by 0.10 every 100 milliseconds. So at 5 seconds my value should be 0.50 Now I could use an NSTimer to do this same thing I suppose, but I figured since Core Animation was already setup to handle things like this, why not use that. So my question is, is this even possible? Should I stop trying with this approach? Not looking for a how do I do this, more of a yes or no answer, I would like to figure it out on my own. Just want to make sure I am not barking up the wrong tree to begin with. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com