mirror of
https://github.com/project-slippi/cpal.git
synced 2025-10-05 15:52:44 +02:00
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:
committed by
GitHub
parent
17d2cc2084
commit
f063271c23
@@ -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(),
|
||||
|
Reference in New Issue
Block a user