Fix synth_tones frequency (#792)

Each *_wave() function calls advance_sample(). Having tick() also call it results in skipping every second sample.
This commit is contained in:
Hugo van der Merwe
2023-08-03 03:42:34 +02:00
committed by GitHub
parent 17d2cc2084
commit f063271c23

View File

@@ -81,7 +81,6 @@ impl Oscillator {
}
fn tick(&mut self) -> f32 {
self.advance_sample();
match self.waveform {
Waveform::Sine => self.sine_wave(),
Waveform::Square => self.square_wave(),