A couple of weeks ago a colleague shared with me the latest album by Radiohead.
I could have simply double clicked on a song to start iTunes, but that was too easy and iTunes seemed just too big. What I needed was a minimal audio player, even better: a terminal audio player.
From a quick search I found out about
afplay, a darwin command line utility
to play audio files.
afplay worked fine, but I wanted also to pause/resume,
to skip songs, and to continue listening to the song after the current without
having to start a new command.
It was the perfect excuse to write some Haskell. I was not writing anymore Haskell from a couple of months and I must say that I was missing it.
I started building a terminal interface on top of
afplay. After less than a
week of late night hacking, and thanks to
brick, a library to write terminal
applications, the first version of
haskell-player was ready.
The set of features of the current version is really minimal and the app works
only on OS X, because it requires
afinfo, but I’m still pretty
happy of the result.
Fork it at github.com/potomak/haskell-player.Tweet blog comments powered by Disqus