Przeglądaj źródła

use AUDIO_SAMPLE_RATE_EXACT

dds
Frank 8 lat temu
rodzic
commit
9ba73f617e
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      effect_flange.cpp

+ 2
- 2
effect_flange.cpp Wyświetl plik

@@ -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

Ładowanie…
Anuluj
Zapisz