AU2 - another lesson - GetSampleRate
AU2 - another lesson - GetSampleRate
- Subject: AU2 - another lesson - GetSampleRate
- From: Marc Poirier <email@hidden>
- Date: Tue, 1 Oct 2002 22:39:15 +0200 (CEST)
Tuesday's lesson: Don't call GetSampleRate during your Audio Unit's
constructor. Of course, if you look at the AUEffectBase implementation of
it, you will see that it is not a good idea because it accesses element 0
which does not exist at the time of your plugin's construction. But if
you're dumb like me, you will not look at that and instead spend a day
cursing the Component Manager for throwing weird exceptions and generally
mucking things up when it's really your own fault for trying to do
something silly...
Marc
_______________________________________________
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.