Browse Source

fix some clicks

vampirefrog 3 years ago
parent
commit
15a53a4b01
2 changed files with 0 additions and 2 deletions
  1. 0
    1
      synth.c
  2. 0
    1
      voice.c

+ 0
- 1
synth.c View File

@@ -156,7 +156,6 @@ void synth_render_sample(struct Synth *synth, float *out) {
156 156
 
157 157
 	for(int i = 0; i < SYNTH_NUM_VOICES; i++) {
158 158
 		struct Voice *v = &synth->voices[i];
159
-		if(v->osc_env.state == EnvNone) continue;
160 159
 
161 160
 		float vsmpl[2];
162 161
 		voice_render_sample(v, vsmpl);

+ 0
- 1
voice.c View File

@@ -7,7 +7,6 @@ void voice_init(struct Voice *v, struct Synth *synth) {
7 7
 }
8 8
 
9 9
 void voice_render_sample(struct Voice *v, float *out) {
10
-	//if(v->osc_env.state == None) return;
11 10
 	float amplitude = envelope_sample(&v->osc_env); // calculate based on key velocity and envelope
12 11
 	float cutoff = envelope_sample(&v->filter_env);
13 12
 

Loading…
Cancel
Save