You need two things - a librabry implementation or spec describing a file format you want to play, and a library for getting sounds out to the speaker hardware. There are also some libraries such as gstreamer that handle the whole thing.
__________________
Stop intellectual property from infringing on me