• 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
How to disable volume ramp when playing audio with AVPlayer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to disable volume ramp when playing audio with AVPlayer?


  • Subject: How to disable volume ramp when playing audio with AVPlayer?
  • From: Dave Fernandes <email@hidden>
  • Date: Fri, 01 Aug 2014 17:01:17 -0400

I’m using an AVPlayer to play an audio track and synchronize playback with an AVSynchronizedLayer. It is all working fine, but there is some "default behavior” that I would like to change. When you start playback, the volume always ramps up to the value that has been set. This is a problem because the user may pause and resume playback rapidly, and each time they do, the volume drops and ramps back up.

Is there any way to prevent this ramp or decrease the default ramp time? I have tried setting the volume using the AVPlayer’s volume property, versus using a ramp set in an AVMutableAudioMixInputParameters. But I get the same behavior either way when pausing and resuming playback.

Thanks in advance.

Dave
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Prev by Date: Re: ARC and NSObjectController bindings through file's owner
  • Next by Date: Re: ARC and NSObjectController bindings through file's owner
  • Previous by thread: Re: Alternative to NSRunningApplication launchDate?
  • Next by thread: About an alternative menu choice and toolbar buttons.
  • Index(es):
    • Date
    • Thread