| 51 | } |
| 52 | |
| 53 | void FftWindowChoiceAdapter::parameterValueChanged(int, float) |
| 54 | { |
| 55 | auto choiceIndex = m_parameter->getIndex(); |
| 56 | if(choiceIndex == 0) { |
| 57 | m_currentWindow = FftWindowType::HANN; |
| 58 | } |
| 59 | else if(choiceIndex == 1) { |
| 60 | m_currentWindow = FftWindowType::BLACKMAN; |
| 61 | } |
| 62 | else if(choiceIndex == 2) { |
| 63 | m_currentWindow = FftWindowType::HAMMING; |
| 64 | } |
| 65 | else if(choiceIndex == 3) { |
| 66 | m_currentWindow = FftWindowType::BLACKMAN_HARRIS; |
| 67 | } |
| 68 | else { |
| 69 | m_currentWindow = FftWindowType::HANN; |
| 70 | } |
| 71 | |
| 72 | m_shouldChangeFftWindow = true; |
| 73 | } |
| 74 |
nothing calls this directly
no outgoing calls
no test coverage detected