[vlc-devel] [PATCHv2 2/9] aout: add the vlc_audio_meter API
Thomas Guillem
thomas at gllm.fr
Mon Aug 24 10:20:31 CEST 2020
On Mon, Aug 24, 2020, at 08:09, Steve Lhomme wrote:
> On 2020-08-19 21:25, Thomas Guillem wrote:
> > This API will be used by the aout, and could be used by any visualisation
> > module needing audio measurements.
> >
> > This API allows to create "audio meter" filters plugins. This new type of
> > filter is measuring audio blocks without modifying them and send the
> > measurement via audio filters callbacks. These events are then propagated to
> > vlc_audio_meter events.
>
> This doesn't sound very accurate. For example if you pause and play you
> get a value from blocks that will play in many ms ?
If you pause and play, you will get a measure with the correct date thanks to the new clock and the fact that the meter is processed just before aout play.
> I would prefer if
> the meter value could be attached to the block or at least sent as a
> timed stream (a new ES type ?).
We can do that in the future but there is now 0 use case for that. The main usecase for the meter is to propagate it to the UI.
It can be used by a visualization module too if it spawn manually a meter.
> It could be turned to SPU accurately if
> you want to display them. That makes visualization totally independent
> of the metering algorithm.
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list