• 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: auval calling GetTailTime() before initialization...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auval calling GetTailTime() before initialization...


  • Subject: Re: auval calling GetTailTime() before initialization...
  • From: William Stewart <email@hidden>
  • Date: Tue, 17 Apr 2007 18:54:18 -0700

Sure

On 17/04/2007, at 5:04 PM, jorge castellanos wrote:


Auval seems to be calling "GetTailTime()" when the AU is uninitialized.
To obtain the TailTime I'm using an object that gets instantiated on initialization (as it should), so when auval calls GetTailTime() before the AU is initialized, it crashes.
For now, I just did...
if(IsInitialized())
return myObject.tail();
else
return 0.0; // This is just so auval does not crash...


Any reason why I should "know" my tail time before initialization? Why is it being called when uninitialized?

Why should a host have to init and allocate a whole bunch of memory for an AU just to find out how to handle its rendering? Returning a tail time of 0 is bad, so I'm glad you asked!


Tail time is also meant to be a reasonable but conservative estimate - it doesn't have to be accurate to the sample, but should cover expected tails given available parameter settings. So, a common practise is to return a conservative estimate

Bill


Thanks!

J.C.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


_______________________________________________
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

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
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: auval calling GetTailTime() before initialization...
      • From: "jorge castellanos" <email@hidden>
References: 
 >auval calling GetTailTime() before initialization... (From: "jorge castellanos" <email@hidden>)

  • Prev by Date: Audio Unit UI
  • Next by Date: Re: Audio Unit Component Icon
  • Previous by thread: auval calling GetTailTime() before initialization...
  • Next by thread: Re: auval calling GetTailTime() before initialization...
  • Index(es):
    • Date
    • Thread