ghans wrote:Perhaps you should look into how ALSA works.
PyAlsaAudio works fairly well, and is light with few dependencies (but you have to install libaudio2-dev via apt-get)
If you have troubles I can send you a code sample of using it, but it's straight forward.
I'll have a look to PyAlsaPlay too, thanks for the link!
But for now, i'm trying to build a c++ extension for Python that directly uses omxplayer source code. After a lot (a lot, a lot, a lot) of build errors, I finally heard Airbourne (from a MP3 file) from my Pi ! Victory!
I had to build Ffmpeg, omxplayer, then, learn some Python basics, and learn how to build a Python extension... It's quite interesting
I'll keep you up to date when I'll something new !