Issues updating a old project


#1

I’m getting the following errors

Cannot initialize a variable of type ‘float *’ with an rvalue of type 'float’
No member named ‘getSampleData’ in 'juce::AudioBuffer’
No member named ‘getSampleData’ in ‘juce::AudioBuffer’


#2

Unless I’m mistaken I think you can just replace getSampleData with getReadPointer.


#3

Thanks getReadPointer() returns const samples, so I used getWritePointer() instead and compiled fine.


#4

Ah yes good point.