Bläddra i källkod

Merge pull request #168 from FrankBoesing/patch-4

use AUDIO_SAMPLE_RATE_EXACT
dds
Paul Stoffregen 8 år sedan
förälder
incheckning
dc14cde69f
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. +2
    -2
      effect_flange.cpp

+ 2
- 2
effect_flange.cpp Visa fil

@@ -77,7 +77,7 @@ if(0) {
// initial index
l_delay_rate_index = 0;
l_circ_idx = 0;
delay_rate_incr = delay_rate/44100.*2147483648.;
delay_rate_incr = delay_rate / (2147483648.0 * AUDIO_SAMPLE_RATE_EXACT);
//Serial.println(delay_rate_incr,HEX);

delay_offset_idx = delay_offset;
@@ -100,7 +100,7 @@ boolean AudioEffectFlange::voices(int delay_offset,int d_depth,float delay_rate)
delay_depth = d_depth;

delay_rate_incr = delay_rate/44100.*2147483648.;
delay_rate_incr = delay_rate / (2147483648.0 * AUDIO_SAMPLE_RATE_EXACT);
delay_offset_idx = delay_offset;
// Allow the passthru code to go through

Laddar…
Avbryt
Spara