Explorar el Código

Fix AudioSynthWaveformSineModulated amplitude without mod input (thanks neurofun)

https://forum.pjrc.com/threads/48307
dds
PaulStoffregen hace 7 años
padre
commit
368261dcfe
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      synth_sine.cpp

+ 1
- 1
synth_sine.cpp Ver fichero

@@ -192,7 +192,7 @@ void AudioSynthWaveformSineModulated::update(void)
scale = (ph >> 8) & 0xFFFF;
val2 *= scale;
val1 *= 0x10000 - scale;
block->data[i] = (val1 + val2) >> 16;
block->data[i] = multiply_32x32_rshift32(val1 + val2, magnitude);
ph += inc;
}
}

Cargando…
Cancelar
Guardar