Many things can whine as mentioned.

I'll toss in a clogging transmission pump. If the filter is nearly plugged...it'll whine as it tries to pump fluid.