recognizing audio ports?

my dad asked me to write a program for him that involves playing music through whatever is plugged into the audio port. i asked on irc, and computerquip said i might have to make my own api, but im wondering if someone knows a simpler solution? this program will be running on raspberry pi raspian, but ill be writing it on 64 bit linux mint. if someone knows something cross platform, that would be great, but if it is linux only that will be fine
Google for it!
through whatever is plugged into the audio port
It looks like you want to play audio through default audio device.

For Linux based systems there is audio libraries with easy to use API, like ALSA or PulseAudio.

As Raspberry Pi is more limited, I suggest you to see what is avaliable on it and work with it.
Google for it!

i tried but nothing came up.

thank you mii. ill look into those
Topic archived. No new replies allowed.