Make sure that the resampler is only created when audio is enabled.