diff options
Diffstat (limited to 'src/audio/synth.cc')
| -rw-r--r-- | src/audio/synth.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/audio/synth.cc b/src/audio/synth.cc index 523d3d7..b4aaf53 100644 --- a/src/audio/synth.cc +++ b/src/audio/synth.cc @@ -146,8 +146,7 @@ void synth_render(float *output_buffer, int num_frames) { for (int v_idx = 0; v_idx < MAX_VOICES; ++v_idx) { Voice &v = g_voices[v_idx]; - if (!v.active) - continue; + if (!v.active) continue; if (v.buffer_pos >= DCT_SIZE) { if (v.current_spectral_frame >= v.total_spectral_frames) { @@ -193,13 +192,9 @@ void synth_render(float *output_buffer, int num_frames) { int synth_get_active_voice_count() { int count = 0; for (int i = 0; i < MAX_VOICES; ++i) { - if (g_voices[i].active) { - count++; - } + if (g_voices[i].active) { count++; } } return count; } -float synth_get_output_peak() { - return g_current_output_peak; -} +float synth_get_output_peak() { return g_current_output_peak; } |
