Causes of whining when accelerating - 2009 Hyundai Elantra

What causes a high-pitched whining sound when accelerating? Is it a serious problem? Transmission?

Likely it is a transmission making this noise but it could be other things as well. Alternator maybe.

In any event, if it is a problem, it will get worse, not better.