Re: Transport start/stop for Effect Units needed
Re: Transport start/stop for Effect Units needed
- Subject: Re: Transport start/stop for Effect Units needed
- From: "Paul Kellett" <email@hidden>
- Date: Thu, 15 May 2003 10:48:32 +0200
Chris Reed <email@hidden> wrote:
>
>
Couldn't you use the current host time and beat location callback to
>
determine if playback is progressing? If the current location doesn't
>
change, or the host returns an error for that call, then you can assume
>
the transport is stopped.
>
That is ok (as Howard says - if you can rely on the reported location)
but watching to see if the current location is changing isn't always
good enough. If the transport is stopped at the start of bar 1, then
starts playing *from there*, the start location for each frame will be
something like:
1.000 transport is stopped
1.000
1.000
1.000
transport starts
1.000
1.003 <- you detect the location is now changing
1.006
So you missed the opportunity to do something exactly on the first beat
of the bar! This is really a problem when the user wants to select an
exact range and render the plug-in output to a file.
Paul.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.