• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: track location information
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: track location information


  • Subject: Re: track location information
  • From: George Tourtellot <email@hidden>
  • Date: Wed, 1 Apr 2009 14:35:18 -0700 (PDT)

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


 _______________________________________________
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

  • Follow-Ups:
    • Re: track location information
      • From: Nikolaus Gerteis <email@hidden>
  • Prev by Date: Re: more AudioFile Questions
  • Next by Date: AudioFile CGI problems
  • Previous by thread: Re: more AudioFile Questions
  • Next by thread: Re: track location information
  • Index(es):
    • Date
    • Thread