Hello everyone, So I wanted to play a bit with the "spectrum" GStreamer element. After reading the documentation, I noticed that it used "element messages" to send the spectrum data to the application, but gb.media does not have an interface to catch these.
I made a quick and dirty patch at first, but I think that after some cleanup it would be nice to share. So here it is (see the attached patch). (I named the data class MediaData here, but I think there might be a better name for it.) In order to see it in action, I made a small application that shows the spectrum of an audio file while playing it. It also tweaks the data to look nicer on the visualizer (basically changing the frequency scale to a logarithmic one, and smoothing the result), but you can disable it in the configuration menu if you want. The app itself is completely useless, but I find it quite fun to watch. However, processing and rendering the data takes a significant amount of power, so it might lag if you have a small CPU. If it lags too much for you, you can lower some rates in the SpectrumPlayer class. What do you think ? Regards, -- Adrien Prokopowicz
AudioSpectrum-1.0.tar.gz
Description: GNU Zip compressed data
gb.media_src.diff.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user