| 1212 | } |
| 1213 | |
| 1214 | void FireAudioProcessor::updateHighCutFilters(const ChainSettings& chainSettings, double sampleRate) |
| 1215 | { |
| 1216 | auto highCutCoefficients = makeHighCutFilter(chainSettings, sampleRate); |
| 1217 | auto& leftHighCut = leftChain.get<ChainPositions::HighCut>(); |
| 1218 | auto& rightHighCut = rightChain.get<ChainPositions::HighCut>(); |
| 1219 | |
| 1220 | auto highcutQCoefficients = makeHighcutQFilter(chainSettings, sampleRate); |
| 1221 | |
| 1222 | leftChain.setBypassed<ChainPositions::HighCut>(chainSettings.highCutBypassed); |
| 1223 | rightChain.setBypassed<ChainPositions::HighCut>(chainSettings.highCutBypassed); |
| 1224 | |
| 1225 | updateCutFilter(leftHighCut, highCutCoefficients, chainSettings.highCutSlope); |
| 1226 | updateCutFilter(rightHighCut, highCutCoefficients, chainSettings.highCutSlope); |
| 1227 | |
| 1228 | updateCoefficients(leftChain.get<ChainPositions::HighCutQ>().coefficients, highcutQCoefficients); |
| 1229 | updateCoefficients(rightChain.get<ChainPositions::HighCutQ>().coefficients, highcutQCoefficients); |
| 1230 | } |
| 1231 | |
| 1232 | void FireAudioProcessor::updateFilter(double sampleRate) |
| 1233 | { |
nothing calls this directly
no test coverage detected