diff options
author | grm <grm@eyesin.space> | 2025-03-03 19:51:46 +0200 |
---|---|---|
committer | grm <grm@eyesin.space> | 2025-03-03 19:51:46 +0200 |
commit | a07981e1721a497a4542ac9ab63032b3ccbd1952 (patch) | |
tree | 6590347bb14f8c86dec94766158ff708b627b86a /src/synth_engine_v2.c | |
parent | 370160c6241abe29265e6e9fb851d571aab8d10e (diff) | |
download | synth-project-a07981e1721a497a4542ac9ab63032b3ccbd1952.tar.gz synth-project-a07981e1721a497a4542ac9ab63032b3ccbd1952.tar.bz2 synth-project-a07981e1721a497a4542ac9ab63032b3ccbd1952.zip |
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 ) { |