« I have a thorough understanding of biology and the workings of the human body. | Main | OMG »

ctypes rules

This probably won't get as many comments as the post immediately below it, but ctypes, despite its incredibly scanty documentation, is very cool.  I'm probably the last person to realize this.  However, I just discovered that the beep media player has been removed from portage, and my installed copy decided to stop playing ogg files for some reason, but that there's a fork called audacious.  But I didn't want to have to do what I did when I installed bmp for the first time in order to get a python interface (namely, download pyxmms and doctor the makefile), so to ctypes I turn, and Bob's your uncle; one module to control xmms, bmp, and audacious.  Granted it could be better designed (like, the whole thing could be in a class, so you could have interfaces to different players running simultaneously more easily), but hey, it works.

Comments

my installed copy decided to stop playing ogg files for some reason

Because HE LEFT US. Can't you move on?

Ben files his oggs, to play them back later.

I'm probably the last person to realize this.

Rest easy, on this score.

Last among those who were realization-susceptible.

Many thanks! I found your blog when searching for an audacious version of pyxmms. My escape plans from xmms are somewhat hindered by my python/curses xmms interface which I use a lot. Using your xmmsalike was a quick fix to get my script work with audacious, though there are still some minor issues left.

I'm interested in improving and redistributing your code, so I'd like to get in touch.

Post a comment

If you have a TypeKey or TypePad account, please Sign In

.