AudioProcessor::prepareToPlay() and AudioSource::prepareToPlay() have the parameters reversed…
Yeah - my apologies for that! The two classes evolved from different origins, and I didn’t notice the inconsistency before it was too late. Would be a bit disruptive to change one of them now, but next time I do any major work on one of them I’ll probably tidy them up.
couldnt you just add the new “proper” one and put in some kind of macro to flag the old one as “deprecated” ?
I could, but it’ll mean a lot of people changing their code.