• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Volume automation with AVAudioPlayerNode (AVAudioMixing)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Volume automation with AVAudioPlayerNode (AVAudioMixing)?


  • Subject: Re: Volume automation with AVAudioPlayerNode (AVAudioMixing)?
  • From: Matt Hart <email@hidden>
  • Date: Mon, 29 Dec 2014 13:14:23 -0500

I use a higher-level custom AudioEngine that encapsulates stuff like fade out/in, cross-matrix volume setting, getting level information.

On Dec 29, 2014, at 1:10 PM, Mark Wise <email@hidden> wrote:

Well, it works. It feels really dirty, and I am going to feel gross when I try to calculate more specific timings, but it will get the job done in the near term!

Thanks for the tip, Matt. If anyone else has thoughts on how better to do this, please do share!

Mark Wise
646.241.7126

On Mon, Dec 29, 2014 at 11:56 AM, Mark Wise <email@hidden> wrote:
Ok, good to know. I should know soon if it works.

Mark Wise
646.241.7126

On Mon, Dec 29, 2014 at 11:52 AM, Matt Hart <email@hidden> wrote:
No distortion ... but I do put the timer in NSRunLoop commonModes


On Dec 29, 2014, at 12:45 PM, Mark Wise <email@hidden> wrote:

Thanks for the quick reply, Matt. That's what I'm trying right now.  It just seems so high-level for such a low-level component. Have you noticed any distortion when doing quick fades?

Mark Wise
646.241.7126

On Mon, Dec 29, 2014 at 11:32 AM, Matt Hart <email@hidden> wrote:
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@hidden> 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@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden






 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Volume automation with AVAudioPlayerNode (AVAudioMixing)?
      • From: Mark Wise <email@hidden>
References: 
 >Volume automation with AVAudioPlayerNode (AVAudioMixing)? (From: Mark Wise <email@hidden>)
 >Re: Volume automation with AVAudioPlayerNode (AVAudioMixing)? (From: Matt Hart <email@hidden>)
 >Re: Volume automation with AVAudioPlayerNode (AVAudioMixing)? (From: Mark Wise <email@hidden>)
 >Re: Volume automation with AVAudioPlayerNode (AVAudioMixing)? (From: Matt Hart <email@hidden>)
 >Re: Volume automation with AVAudioPlayerNode (AVAudioMixing)? (From: Mark Wise <email@hidden>)
 >Re: Volume automation with AVAudioPlayerNode (AVAudioMixing)? (From: Mark Wise <email@hidden>)

  • Prev by Date: Re: Volume automation with AVAudioPlayerNode (AVAudioMixing)?
  • Next by Date: Re: Volume automation with AVAudioPlayerNode (AVAudioMixing)?
  • Previous by thread: Re: Volume automation with AVAudioPlayerNode (AVAudioMixing)?
  • Next by thread: Re: Volume automation with AVAudioPlayerNode (AVAudioMixing)?
  • Index(es):
    • Date
    • Thread