template <class InputT>
class CoefficientTableCache
Defined at line 27 of file ../../src/media/audio/lib/processing/coefficient_table_cache.h
A cache of `CoefficientTables`. These use a lot of memory so we try to reuse them as much as
possible. For example, different filters might use the same underlying coefficient table with
slightly different filter parameters. Additionally, different samplers might use the same filter.
`InputT` defines the set of inputs that are used to construct the CoefficientTable.
Public Methods
void CoefficientTableCache<InputT> (fit::function<CoefficientTable *(const InputT &)> create_table)
Defined at line 70 of file ../../src/media/audio/lib/processing/coefficient_table_cache.h
SharedPtr Get (InputT inputs)
Returns a cached table for the given inputs, or if a cached tabled does not exist, a new table
is created and stored in the cache.
Defined at line 75 of file ../../src/media/audio/lib/processing/coefficient_table_cache.h
SharedPtr Add (InputT inputs, CoefficientTable * table)
Similar to `Get`, but uses the given table rather than creating a new one.
Defined at line 80 of file ../../src/media/audio/lib/processing/coefficient_table_cache.h