ffAudio / ff_meters

Plug and play component to display LED meters for JUCE audio buffers
BSD 3-Clause "New" or "Revised" License
113 stars 31 forks source link

Allow specifying buffer subsets. #19

Closed RafaGago closed 2 years ago

RafaGago commented 3 years ago

Sometimes audiobuffers contain data a user might not be interested to measure.

Obviating the CPU waste of doing two different passes, one for the magnitude and another for the RMS; touching memory areas that are not required is not good for caches, specially if some channel buffers there are only preallocated but unused.

This commit adds an overload to "measureBlock" that allows specifying buffer subsets.

ffAudio commented 2 years ago

There is a method to create a proxy AudioBuffer referencing the subset of the original.

Seems I missed it and I cannot have a look at it since the source seems have been deleted. Thanks anyway for your effort.