About buffersize in Core Audio

Hello, everyone.New to macos, I want to ask if the buffersize property is independent in coreaudio. The plugin I developed does not read buffersize from DAW, and the buffersize I changed is not recognized by DAW

I would assume that we are talking about traditional plugin.

The plugin I developed does not read buffersize from DAW

Each time when processBlock is invoked, you can read the buffer size by buffer.getNumSamples()

and the buffersize I changed is not recognized by DAW

I am afraid that you are not able to change the buffer size by your (any) plugin.

Thank you.If I develop another DAW using juce, will buffersize sync with the other DAWs?

AFAIK buffer size does not sync (it is not even a constant). The plugin should be able to handle any logical buffer size.

However, I am not very experienced with DAW development. Perhaps someone else may help you further.

I could be wrong to the best of my knowledge in the case of a plug and play CoreAudio device, I don’t think this would be the case. The CoreAudio driver will likely set the device to one buffer size and each of the applications (the DAWs) requesting a particular buffer size should receive callbacks with their requested buffer size independently of each other.

1 Like

Thanks you so much.