What happens if AVMutableComposition is mutated during playback?
What happens if AVMutableComposition is mutated during playback?
- Subject: What happens if AVMutableComposition is mutated during playback?
- From: Jens Alfke <email@hidden>
- Date: Sun, 23 Jun 2013 14:21:14 -0700
I’m getting started with the AVFoundation API — revamping a half-finished multitrack audio app that used to use AudioUnits. I’m obviously leaning heavily on AVMutableComposition. One thing I’m unsure of, that I haven’t seen addressed in the docs, is whether it’s possible to modify the composition while it’s being played by an AVPlayer.
For example, in my UI the user can grab an audio region and move it forwards or back in the timeline at any time. In API terms, I’d be creating a new array of AVCompositionTrackSegments and replacing the associated AUCompositionTrack’s segments property with them. What is the effect if the composition is being played? Will the playback update accordingly, or will there be no effect until I stop and restart the player?
—Jens
_______________________________________________
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