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:
parent
17d2cc2084
commit
f063271c23
1 changed files with 0 additions and 1 deletions
|
|
@ -81,7 +81,6 @@ impl Oscillator {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn tick(&mut self) -> f32 {
|
fn tick(&mut self) -> f32 {
|
||||||
self.advance_sample();
|
|
||||||
match self.waveform {
|
match self.waveform {
|
||||||
Waveform::Sine => self.sine_wave(),
|
Waveform::Sine => self.sine_wave(),
|
||||||
Waveform::Square => self.square_wave(),
|
Waveform::Square => self.square_wave(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue