There are several different audio libraries, however, none of them meet my exact needs:
- It needs to be cross-platform.
- It needs to be able to use the ALSA, PulseAudio or any other common default mixer under Linux.
- It needs to be able to autodetect the sample frequency.
- It needs to be (fairly) simple in usage, if instead someone can give me an extra script that will MAKE it easier for me that's accepted too.
- The only functionality I need is play/pause, seeking is a nice bonus.
- It needs to be able to play MP3 and OGG. No other formats are important to me.
The libraries I've tried so far:
PyGame - doesn't support detecting the song's frequency
PyAudiere - promising, but only loads OSS in Linux, with which I have serious mixing problems
Built-in modules - don't support MP3 and OGG as far as I'm aware
PyMedia - promising, but complicated. Also couldn't find out what mixing devices it uses.
PySonic - relies on a closed-source library.
PyQt4.phonon - promising, but wouldn't play anything. Got the following error:
gst_element_make_from_uri: assertion `gst_uri_is_valid (uri)' failed
Any help on this would be appreciated.