How to disable volume ramp when playing audio with AVPlayer?
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