aboutsummaryrefslogtreecommitdiff
path: root/src/sounds.c
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2025-10-10 22:19:33 +0300
committerspl3g <spleefer6@yandex.ru>2025-10-10 22:19:33 +0300
commit99fb0374e9352ebb61e7eea134784bd26f61a892 (patch)
tree4d38dc45db8840cc90db2ba9333d312014db59e4 /src/sounds.c
parent5006c1f01d0c8556b74309d6678f78b63568dac3 (diff)
Add mouse interactions
Diffstat (limited to 'src/sounds.c')
-rw-r--r--src/sounds.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sounds.c b/src/sounds.c
index 0086f4f..9c6711c 100644
--- a/src/sounds.c
+++ b/src/sounds.c
@@ -188,7 +188,7 @@ void post_process(synth_params *params, float *scratch_buffer,
void prepare_output(float *scratch_buffer, short *output_buffer,
size_t buffer_size) {
for (size_t i = 0; i < buffer_size; i++) {
- output_buffer[i] = scratch_buffer[i] * 0.2f * 32767;
+ output_buffer[i] = scratch_buffer[i] * 32767;
}
}
@@ -218,7 +218,6 @@ void sound_loop_start(snd_pcm_t *pcm, message_queue *queue,
case MSG_PARAM_CHANGE: {
param_type type = msg.param_change.param_type;
float value = msg.param_change.value;
- printf("%d %f\n", type, value);
set_param(params, type, value);
break;
}