Is there any way to play mp3 and/or wav

Hi all, I'm currently using the standard audio library, which requires wav files 44100hz and 16-bit. No other formats work. Are there any solutions that would allow me to accept and play back other file types/settings? Basically, I'd like someone to be able to load and mp3 file, a wav file 44100hz, a wav file 48000hz, etc, and be able to play back all of them. Any ideas?