buildChain
java.util.List<AudioFilter> buildChain(AudioTrack track,
AudioDataFormat format,
UniversalPcmAudioFilter output)
Builds a filter chain for processing a track. Note that this may be called several times during the playback of a
single track. All filters should send the output from the filter either to the next filter in the list, or to the
output filter if it is the last one in the list. Only the process and flush methods should call the next filter,
all other methods are called individually for each filter anyway.
- Parameters:
track - The track that this chain is built for.
format - The output format of the track. At the point where these filters are called, the number of channels
and the sample rate already matches that of the output format.
output - The filter that the last filter in this chain should send its data to.
- Returns:
- The list of filters in the built chain. May be empty, but not
null.