“Line In” & “Amp In” Plugged in the Same Time

Which would take precedence if both were plugged in the same time? I assume the line in would be disabled and the amp in signal would go to the speaker outputs?