Click to See Complete Forum and Search --> : Play MP3's in program


tiw
04-26-2001, 10:41 AM
Does anyone know if you can include a library to play back mp3's. And if so do you know how to access the command to play back a mp3

nanode
04-26-2001, 10:58 AM
I don't know of any libraries that are pre-built to do such a thing, but here's what I've done:

Download playmp3list from http://www.linuxberg.com/conhtml/preview/47648.html (it's on several sites actually). playmp3list is a console based mp3 player that takes command line args and can be run in the background IIRC. It's a bit of a hack, but you could always execute a shell command from within your code, and pass along the .mp3 filename as a string arg.

I end up doing shady junk like this all the time, because programmers are lazy by nature :)

Good luck.