Re: Playhead and the AUFilePlayer
Re: Playhead and the AUFilePlayer
- Subject: Re: Playhead and the AUFilePlayer
- From: Orestis Markou <email@hidden>
- Date: Tue, 18 Dec 2012 18:14:07 +0200
On 18 Δεκ 2012, at 6:04 μ.μ., R <email@hidden> wrote:
>
> I would like to be able to move the playhead using the AUFilePlayer or AUGraph. Am I dreaming? Is there any way to move the playhead without stopping and starting, forcing to reload mStartFrame and mFramesToPlay in the AUFilePlayer? I'm monitoring playhead position using AUGraphRenderNotify, but the I can't find a way to reset the timeStamp without stopping and rebuilding the AUGraph… it just keeps incrementing
Why do you rebuild the AUGraph? You can reset the AUFilePlayer, schedule a new file/region to play, and re-set the startTimeStamp and everything will work fine.
Of course, usually a glitch will be heard, depending on the sample your playhead ends on, but that's something you need to handle by fading the audio in and out.
At least, that's my experience.
>
> Currently, I'm thinking about abandoning the AUFilePlayer and manually rendering from the file.
>
> My signal chain inside my AUGraph as follows:
> Audio File
> AUFilePlayer
> AUTimePitch
> DefaultOutput
>
> Thanks -- Ron
>
>
> å
> _______________________________________________
> 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