Lock object in my AudioSource?


#1

Hello

I’m writing my first audio source that resamples using libresample.

Should I lock all the variables that are used both on getNextAudioBlock() and the other functions of my class ?
They can be accessed by either the “audio thread” or the GUI thread aren’t they ?

thanks

geoffroy


#2