Hi Niko, et al.,
thanks for responding. Again, my goal is to know the current location in the active audio track, and I believe one way to do this is by calling function CallHostTransportState, and then looking at the value of parameter: outCurrentSampleInTimeLine.
> Perhaps GarageBand hasn't implemented this function? <<GarageBand is supposed to handle this. What version do you test with?
I am using GarageBand '08, Version 4.1.2 (248.7).
<<How are you calling this exactly?
within the GetParameterInfo method of my class that inherits from AUEffectBase, I call the function: CallHostTransportState.
specifically, I use this snippet of code:
/*=======* Boolean outIsPlaying;
Boolean outTransportStateChanged;
Float64 outCurrentSampleInTimeLine;
Boolean outIsCycling;
Float64 outCycleStartBeat;
Float64 outCycleEndBeat;
OSStatus thestatus;
thestatus = CallHostTransportState (&outIsPlaying, &outTransportStateChanged, &outCurrentSampleInTimeLine, &outIsCycling, &outCycleStartBeat, &outCycleEndBeat); /*=========*/
I printf the values, and the Boolean variables are never true.
Please let me know if I'm using this function incorrectly or otherwise what else might be wrong.
thanks, --anonman0
--- On Mon, 3/30/09, Nikolaus Gerteis <email@hidden> wrote: From: Nikolaus Gerteis <email@hidden> Subject: Re: track location information To: "George Tourtellot" <email@hidden> Cc: email@hidden Date: Monday, March 30, 2009, 4:25 AM
On 28.03.2009, at 22:44, George Tourtellot wrote:
> Perhaps GarageBand hasn't implemented this function?
GarageBand is supposed to handle this. What version do you test with? How are you calling this exactly?
- Niko
|