16 bit 44.1khz audio playback - possible?

I have done PWM and seen the new libraries for playing audio at higher rates, but 8 bits only.

So my question is, would it be possible to interface with a DAC and get 16 bits and 44.1khz? (or even +/- 30khz) I really need 16 bits. Haven't tested with 12 bits yet, could work too. But I need to play back the audio (could be RAW format) in stereo.

What I need is this:

  • SD Card with the audio data, I don't care if its in RAW, WAV or even MP3
  • I need to know once the file ended so I can loop it back to the start with minimal delay possible, so the sound loops nicely. :wink:
  • Be able to also change the sound file at the end, so it starts a new sound with no gaps

I'm researching lots of options, but most are a bit expensive for what I need.

Any help will be much appreciated.

I'm also looking at the MP3 codecs, but from what someone told me, there's latency, so I wouldn't be able to loop sounds.