Gearbox makes whining sound

You've noticed that...

When the car is in gear there's a loud whining sound coming from the gearbox. The sound will stop when the clutch is pressed and the gearbox is disengaged. The sound can increase in volume and pitch as the speed increases.
This 1 part can be connected to or cause the problem