This commit is contained in:
2025-06-08 17:22:30 +02:00
parent 64cac7578d
commit 79c8b747cd
16 changed files with 686 additions and 79 deletions

View File

@@ -106,7 +106,7 @@ void audio_callback(void *userdata, Uint8 *stream, int len) {
float gainL = 1;
float gainR = 1;
float targetAmp = (voice->volume / 255.0f);
float targetAmp = (voice->volume / 255.0f) / 2;
if (v < NUM_SYNTH_VOICES - MIDI_VOICES) {
float distanceAtten = 1.0f - fminf(fabsf(dx) / audio->maxPanDistance, 1.0f);
targetAmp *= distanceAtten;