According to the tech specs, there's a combined digital/audio line in.
https://support.apple.com/kb/SP505?locale=en_US
I have the late 2009 Mini and have recorded from the line in without a problem. (Well, audio line is is prone to hum, but that's usually not the computer's fault.)