Im coding a music player in python using pyqt and I wanted it to feature mono playback of mp3 files.
I've accomplished that using pygame, as its mixer has a specific parameter channels
that I can set to 1
to get mono playback.
However, pygame mp3 support is limited, so I'm searching for a library that will be able to handle mp3 files AND mono playback.
Currently, I'm using pyaudiere for playback and on its site there's an example of processing the song before playing it, so maybe I could do that to turn the song to mono, but I really have no idea how to accomplish that.
I'd like help on how to code this feature using pyaudiere or any other library that can handle mp3 files.
EDIT
I would also accept a solution in C++, as I can always build a python wrapper using Boost::python