mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
dtmf: TWO_PI applies to frequency component, not sample offset
This commit is contained in:
@ -135,7 +135,7 @@ Tone::fillWavetable()
|
||||
static const double TWO_PI = 2.0 * M_PI;
|
||||
|
||||
for (int i = 0; i < TABLE_LENGTH; ++i)
|
||||
wavetable_[i] = sin(i / (tableSize - 1.0)) * TWO_PI;
|
||||
wavetable_[i] = sin((i / (tableSize - 1.0)) * TWO_PI);
|
||||
}
|
||||
|
||||
double
|
||||
|
Reference in New Issue
Block a user