Testing
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user