In my understanding, the pulseaudio binding does not provide an Audio Sink for openhab. (I hope so, or I’ve lost several hours of my life trying to fix some non-existant issue ).
So on my dev installation, I extended the binding capabilities by allowing it to connect to a loaded module-simple-protocol-tcp (a pulseaudio server side module exposing audio sink), thus providing a real Audio Sink for openhab.
It works, except that the module-simple-protocol-tcp only accept raw pcm data, which is kind of a serious limitation for a modern installation.
So, in order to allow the Audio Sink to use MP3, I plan to do some conversion/decode inside the pulseaudio binding exposing my Audio Sink (mp3 → pcm).
First : Does it sound a good idea ?
Second : I already did a proof of concept by adding a dependency inside the binding (com.googlecode.soundlibs) and using it to convert mp3 to pcm. Does is sound a good idea ?
Third : I wonder if I can use some bundle already existing in openHab. (openHab has ‘enhancedjavasound’, which is if I understand correctly a decoder for mp3). Can someone provide me some guidance on how to use it, if it’s possible ? (And if it’s a good idea, of course…)