If you have a supercharger on the car, then this whining noise is normal. But if you don’t have this type of device, then this is often caused by a bad AC compressor, bad water pump, bad alternator, bad power steering pump, etc. Usually, the accessories whine when they fail.