Whining noise from the AC? on 2001 Hyundai XG300

My car was making a whining noise that would become higher in pitch the more the accelerator was depressed. My mechanic disconnected the AC and the sound went away. Summer's coming and I'd like my AC back, but what needs fixed?

Asked by for the 2001 Hyundai XG300
Either the AC clutch is bad or the compressor itself needs replacement