Dummy: fix sine/square frequency sweep

This commit is contained in:
Robin Gareus 2015-04-17 17:08:52 +02:00
parent 76b28e7ff2
commit bb4576b700

View file

@ -1621,7 +1621,7 @@ void DummyAudioPort::setup_generator (GeneratorType const g, float const sampler
#else #else
const double phase = a * exp (b * j) - a; const double phase = a * exp (b * j) - a;
#endif #endif
_wavetable[i] = (float)sin (2. * M_PI * (phase - floor (phase))); _wavetable[i] = -(float)sin (2. * M_PI * (phase - floor (phase)));
} }
if (_gen_type == SquareSweep) { if (_gen_type == SquareSweep) {
for (uint32_t i = 0 ; i < _gen_period; ++i) { for (uint32_t i = 0 ; i < _gen_period; ++i) {