when to set kAudioUnitProperty_MaximumFramesPerSlice
when to set kAudioUnitProperty_MaximumFramesPerSlice
- Subject: when to set kAudioUnitProperty_MaximumFramesPerSlice
- From: Marc Poirier <email@hidden>
- Date: Mon, 17 Feb 2003 19:11:19 +0100 (CET)
Hello. I have a question about the Audio Unit property
kAudioUnitProperty_MaximumFramesPerSlice. Is it considered okay for a
host to set this property at any time? I have an AU that relies on that
property to allocate some DSP buffers. I assumed that, between setting
that property and the start of audio processing, the host would do
kAudioUnitInitializeSelect or kAudioUnitResetSelect on my AU, which is
where my AU checks for changes and reacts accordingly. But today I tested
in a host that sets the kAudioUnitProperty_MaximumFramesPerSlice property
after Initialize and Reset.
Anyway, I have since installed a property listener on the
kAudioUnitProperty_MaximumFramesPerSlice property so my AU no longer
crashes in that host, but I am wondering if there are any rules about that
property. I just would like to know for sure whether AUs are allowed to
make any assumptions about when that property can be set, or whether AUs
interested in that property should expect it to change any time and should
install a property listener for it.
Thanks,
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.