diff options
Diffstat (limited to 'src/synth_engine_v2.c')
-rw-r--r-- | src/synth_engine_v2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/synth_engine_v2.c b/src/synth_engine_v2.c index 4d9721c..7db9a6f 100644 --- a/src/synth_engine_v2.c +++ b/src/synth_engine_v2.c @@ -271,7 +271,7 @@ make_sample(synth_t * synth, unsigned int sample_rate, int frame) // band stop for high freqs //sample = bw_band_stop(synth->fff2, sample); - //if (synth->clamp) sample = clamp(sample, -1, 1); + if (synth->clamp) sample = clamp(sample, -1, 1); // autogain if (synth->autogain && (sample >= 1 || sample <= -1)) { @@ -424,7 +424,7 @@ sound_gen(const void *inputBuffer, void *outputBuffer, get_frame(buffer, synth, frame); } - smooth_buffer(buffer, framesPerBuffer, 0.1f); + //smooth_buffer(buffer, framesPerBuffer, 0.1f); // output buffer for( unsigned long i=0; i<framesPerBuffer * 2; i += 2 ) { |