I’m writing a Midi Fx AU plugin. I’m running it in Logic Pro X 10.4.4.
It runs fine when Logic sample rate is 44100. When I change Logic project sample rate to 88200 or 96000 PrepareToPlay() is called but the provided sample rate is always 44100. It is also 44100 in ProcessBlock() even though host runs at 88200.
Since I’m generating midi based on sample rate and bpm (samplesPerTick) my plugin winds up playing at double rate.
i’m currently using Juce 5.3.2 but I also tried 5.4.3.
Any ideas how to get the correct sample rate from Logic?
Any help will be highly appreciated!!