Skip to content

Commit b189883

Browse files
author
Vivian Stewart
committed
remove double_Pi scaling. Oops
1 parent 64b371a commit b189883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AudioEffects/SoundGenerator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ class FastSineGenerator : public SineWaveGenerator<T> {
276276
}
277277

278278
virtual T readSample() override {
279-
float angle = double_Pi * SineWaveGenerator<T>::m_cycles +
280-
SineWaveGenerator<T>::m_phase;
279+
float angle = SineWaveGenerator<T>::m_cycles +
280+
SineWaveGenerator<T>::m_phase;
281281
T result = SineWaveGenerator<T>::m_amplitude * sine(angle);
282282
SineWaveGenerator<T>::m_cycles += SineWaveGenerator<T>::m_frequency *
283283
SineWaveGenerator<T>::m_deltaTime;

0 commit comments

Comments
 (0)