2015-04-10, 15:52
The LCD displays lack of a nice feature in Kodi : display a spectrum meter or a L/R channels vumeter when playing back music.
I succeeded in doing that in python using pulseaudio (see there (http://forum.kodi.tv/showthread.php?tid=221809)
I just implemente a L/R vumeter, doing a real time FFT is too slow and therefore it is better to have a some compiled code running as a server like the visualization api
but...
1) I don't know if it's possible to get those data in python directly from the Kodi Audio Engine or from the visualization library
2) The LCDProc Addon could benefit of this
3) Pulseaudio is not always the sound server used in Linux, and we need something more "cross-platform"
In order to get into this, there are several solutions :
1) expose AudioData and L/R stereo audio data to python add-ons
2) write a C add-on using visualisation doing this able to display the vumeter or the spectrum meter to the LCDProc server on demand of a Kodi add-on (like LCDProc Addon), but that would not interfere with other visualisation choosen by users
By the way I digged into the code of NastyFFt visualization which is simple enough to serve as a basis to develop other visualisations, in its simplicity, its a very good tutorial . And I have a few ideas in order to write a few visualizations addons.
Thanks for any help
I succeeded in doing that in python using pulseaudio (see there (http://forum.kodi.tv/showthread.php?tid=221809)
I just implemente a L/R vumeter, doing a real time FFT is too slow and therefore it is better to have a some compiled code running as a server like the visualization api
but...
1) I don't know if it's possible to get those data in python directly from the Kodi Audio Engine or from the visualization library
2) The LCDProc Addon could benefit of this
3) Pulseaudio is not always the sound server used in Linux, and we need something more "cross-platform"
In order to get into this, there are several solutions :
1) expose AudioData and L/R stereo audio data to python add-ons
2) write a C add-on using visualisation doing this able to display the vumeter or the spectrum meter to the LCDProc server on demand of a Kodi add-on (like LCDProc Addon), but that would not interfere with other visualisation choosen by users
By the way I digged into the code of NastyFFt visualization which is simple enough to serve as a basis to develop other visualisations, in its simplicity, its a very good tutorial . And I have a few ideas in order to write a few visualizations addons.
Thanks for any help