When does resampling occur

When does resampling occur (using the method passed in setSoftwareFormat for example FMOD_DSP_RESAMPLER_CUBIC), when the sample is loaded or every time it’s played back ?

Resampling happens at playback time because it can be changed with Channel::setPitch().