• 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: Converting AU transport info to VST time info?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting AU transport info to VST time info?


  • Subject: Re: Converting AU transport info to VST time info?
  • From: "Angus F. Hewlett" <email@hidden>
  • Date: Fri, 03 Dec 2004 09:50:36 +0000

Just to clarify,

Howard is looking to get the absolute position, in samples, in the sequencer time line (in VstTimeInfo, this is samplePos).

Previously, in VST-AU, we used the time counter passed to Render(). This works fine for most things, but it seems that it's actually a count from whenever the audio engine was last started / flushed (usually happens at transport start), rather than an absolute position in the song. So, it's OK when the song is started from the beginning, but not when it's started at some other point, as Howard's plug needs to track the absolute song position in samples.

outCurrentSampleInTimeLine should be providing that, but is it? Also, why is it a Float64, when sample position at the start of a render call is always an integer? Simply because it's possible to represent numbers >2x10^31 without a special datatype, or some other reason?

Also, Howard:- bear in mind that CallHostTransportState is a new part of the AU API, and isn't supported on all hosts (which is why we check the variable transportSafe first). So, code based on this call should work fine on Logic 7 and DP4.5, but that code will never be reached if the host is older.

Regards,
      Angus.














Howard Moon wrote:

Hi all,

I'm working on a vst plug-in "wrapped" as an Audio Unit, and am implementing the CallHostTransportState time & transport information in the AUBase class. I've looked at some code from a couple sources (including DestroyFX), but don't see anyone setting the particular information I need. In particular, I need to set the VstTimeInfo member, samplePos. The third parameter of the CallHostTransportState function (outCurrentSampleInTimeLine) seems to be what I need, but I need to know how to convert it to the samplePos that my wrapped vst plug-in needs. Simply assigning it doesn't seem to be working, perhaps because that parameter needs to be converted and/or offset somehow? In any case, if you've got any advice as to how I can compute samplePos from the outCurrentSampleInTimeLine parameter, I'd appreciate hearing it.

Thanks much,
Howard


------------------------------------------------------------------------

_______________________________________________
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



--
=========================================================
Angus F. Hewlett, Managing Director (CEO)
FXpansion Audio UK Ltd - http://www.fxpansion.com
Registered in the UK - #4455834 - VAT: GB 798 7782 33
=========================================================


_______________________________________________
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: Converting AU transport info to VST time info?
      • From: William Stewart <email@hidden>
    • Re: Converting AU transport info to VST time info?
      • From: Howard Moon <email@hidden>
References: 
 >Converting AU transport info to VST time info? (From: Howard Moon <email@hidden>)

  • Prev by Date: Re: [OT]Non-padded odd-length chunks in AIFFs
  • Next by Date: Re: Proper API for selecting devices
  • Previous by thread: Re: Converting AU transport info to VST time info?
  • Next by thread: Re: Converting AU transport info to VST time info?
  • Index(es):
    • Date
    • Thread