How would i make it so in my program there is a button when that button is clicked i want it to play a .wma file without opening and media player?
Gstreamer is a free, cross-platform multimedia framework written in C (using GObject) that allows encoding/decoding for many types of media, including wma. Very easy to use and well documented.