core audio HAL set buffer io frame size

I'm trying to set the buffer size of a core audio HAL plugin from an application.

Code Block
AudioObjectPropertyAddress propertyAddress = {kAudioDevicePropertyBufferFrameSize,
kAudioObjectPropertyScopeOutput, kAudioObjectPropertyElementMaster};
OSStatus err = AudioObjectSetPropertyData(inDeviceID, &propertyAddress, 0, NULL, sizeof(newBufferFrameSize), &newBufferFrameSize);


Everything looks ok as if the buffer gets the new size... but the HAL plugin still uses the old size in its DoIOOperation

What am I doing wrong here?
core audio HAL set buffer io frame size
 
 
Q