summaryrefslogtreecommitdiff
path: root/src/audio
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-03-29 10:15:38 +0200
committerskal <pascal.massimino@gmail.com>2026-03-29 10:15:38 +0200
commite22256e374694fd92cc55ba198d3f7b1911713fe (patch)
tree8361b5d512551c5bf513c36f1abef4ecaf8454f7 /src/audio
parent3be659d9f0a150f8a6527ad0edc31787b0d39994 (diff)
docs: consolidate and sync docs with current codebase state
- PROJECT_CONTEXT.md: fix effect count (12→18), shader count (27→37), update CNN v3 pipeline description, tighten Next Up section - TODO.md: fix priority numbering, restore GPU PCM synthesis as pending, streamline CNN v3 section, consolidate Future items - doc/SEQUENCE.md: effect count 12→18 - cnn_v3/README.md: phases 1–7→1–9, test count 36→38, add phases 8–9 - cnn_v3/docs/HOWTO.md: fix dataset layout blender/photos→full/simple, update test counts 36→38 throughout - doc/COMPLETED.md: archive FFT/timing/OLA fixes, remove false GPU PCM claim - src/audio/audio_engine.cc: fix step comment numbering (6→5) - src/audio/synth.cc: remove stale fractional_pos tempo-scaling comment handoff(Gemini): docs now accurate — 18 effects, 37 shaders, 38/38 tests, GPU PCM synthesis back in TODO as pending, CNN v3 dataset layout corrected.
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];