Added a null check in ResamplingAudioSource