summaryrefslogtreecommitdiff
path: root/src/audio
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/audio_engine.cc2
-rw-r--r--src/audio/synth.cc5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/audio/audio_engine.cc b/src/audio/audio_engine.cc
index b4c4863..c184324 100644
--- a/src/audio/audio_engine.cc
+++ b/src/audio/audio_engine.cc
@@ -184,7 +184,7 @@ void AudioEngine::seek(float target_time) {
tracker_update(t, 0.0f);
}
- // 6. Final update at exact target time
+ // 5. Final update at exact target time
tracker_update(target_time, 0.0f);
current_time_ = target_time;
diff --git a/src/audio/synth.cc b/src/audio/synth.cc
index 9b56069..0161385 100644
--- a/src/audio/synth.cc
+++ b/src/audio/synth.cc
@@ -28,7 +28,7 @@ struct Voice {
float overlap_buf[OLA_OVERLAP]; // OLA tail from previous frame (v2 only)
bool ola_mode; // True for SPEC_VERSION_V2_OLA
int buffer_pos;
- float fractional_pos; // Fractional sample position for tempo scaling
+ float fractional_pos; // Reserved
int start_sample_offset; // Samples to wait before producing audio output
@@ -212,8 +212,7 @@ void synth_trigger_voice(int spectrogram_id, float volume, float pan,
v.ola_mode ? OLA_HOP_SIZE : DCT_SIZE; // Force reload on first render
if (v.ola_mode)
memset(v.overlap_buf, 0, sizeof(v.overlap_buf));
- v.fractional_pos =
- 0.0f; // Initialize fractional position for tempo scaling
+ v.fractional_pos = 0.0f;
v.start_sample_offset = start_offset_samples;
v.active_spectral_data =
g_synth_data.active_spectrogram_data[spectrogram_id];