get a streamer something afordable like the pionner N50
you get high resolution files up to 24/192, over usb, spdif, optical , airplay and it has a very good DAC
it support all the required formats, execpt apple lossless.
if you want cheaper go to logitech squezzetouch, sonos connect
to go ever cheaper get a dock like the arcam dr dock , pure i-20 , they all have digital out , but you need a ipad or iphone to play bit perfect with powerAMP app.
or you can use a computer with external dac like the audioquest dragonfly + jplay software.
trust me you dont want a media player to play music, these are optimized for video, with low cost digital outputs, i made the experience and doest sound good, besides you need a tv on to play music ? i dont think so
best option is a dedicated audio streamer, cost a bit about 399$ but its future proof