Parameter order inconsistent in prepareToPlay()


#1

AudioProcessor::prepareToPlay() and AudioSource::prepareToPlay() have the parameters reversed…


#2

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.


#3

hi jules,
couldnt you just add the new “proper” one and put in some kind of macro to flag the old one as “deprecated” ?


#4

I could, but it’ll mean a lot of people changing their code.