| 203 | } |
| 204 | |
| 205 | void SynthOscillatorImpl::reset() { |
| 206 | if (mHexWave && mEngine) { |
| 207 | // Re-create the oscillator with current parameters |
| 208 | hw::hexwave_create( |
| 209 | mHexWave, |
| 210 | mEngine->getEngineInternal(), |
| 211 | mCurrentParams.reflect, |
| 212 | mCurrentParams.peakTime, |
| 213 | mCurrentParams.halfHeight, |
| 214 | mCurrentParams.zeroWait |
| 215 | ); |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | } // namespace audio |
| 220 | } // namespace fl |
no test coverage detected