diff options
Diffstat (limited to 'src/audio/synth.cc')
| -rw-r--r-- | src/audio/synth.cc | 5 |
1 files changed, 2 insertions, 3 deletions
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]; |
