I use a timer to fade in/out, changing the volume of the player. I adjust +/- 
.05 on .1 second increments.

On Dec 29, 2014, at 12:27 PM, Mark Wise <[email protected]> wrote:

> I am trying to smoothly fade in/out the output from a AVAudioPlayerNode that 
> is connected to an AVAudioMixerNode. I can't figure out the best approach to 
> smoothly ramp the player node's volume over time.
> 
> I see that there's a 'setVolumeRampFromStartVolume:toEndVolume:timeRange' 
> method in the AVMutableAudioMixInputParameters class that is basically 
> exactly what I'm looking for. However, there doesn't seem to be a use for 
> this with an AVAudioMixing-compliant node like the AVAudioPlayerNode 
> connected to an AVAudioMixerNode.
> 
> If I were using an audio unit, I could theoretically connect a MusicTrack in 
> a MusicSequence and automate parameters with a MusicPlayer instance. However, 
> the AVAudioPlayerNode isn't an audio unit, so no luck there.
> 
> Has anyone successfully automated the pan/volume when using the AVAudioMixing 
> components? It's such a low-level-feeling component that I figured parameter 
> automation would be possible.
> 
> 
> Mark Wise
> 646.241.7126
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/coreaudio-api/matt%40matthart.com
> 
> This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to