public static class FilterGraph.Factory extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Factory(AudioFilter firstFilter) |
| Modifier and Type | Method and Description |
|---|---|
FilterGraph.Factory |
addLevel(AudioFilter[] filters)
Adds filters to the next level in the graph
The filters are added to from the left to the right, i.e.
|
FilterGraph.Factory |
addLevels(AudioFilter filter,
int n)
Adds n of this filter as the next level in a graph
|
FilterGraph.Factory |
addLevelSpan(AudioFilter filter)
Adds a level to the graph and tries to fill it with as many of the
current filter as will be needed to take all the outputs of the
previous level
|
FilterGraph |
create() |
protected Factory(AudioFilter firstFilter)
public FilterGraph.Factory addLevel(AudioFilter[] filters)
L0
L1 L1 L1 L1 L1 L1
L2 L2 -->
As a consequence if the filters in this level contain less inputs then
there are outputs in a previous level the graph will throw exception
because the configuration it's misconfigured.filters - public FilterGraph.Factory addLevels(AudioFilter filter, int n)
filter - n - public FilterGraph.Factory addLevelSpan(AudioFilter filter)
filter - public FilterGraph create()
Copyright © 2019. All rights reserved.