瀏覽代碼

Merge pull request #168 from FrankBoesing/patch-4

use AUDIO_SAMPLE_RATE_EXACT
dds
Paul Stoffregen 8 年之前
父節點
當前提交
dc14cde69f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      effect_flange.cpp

+ 2
- 2
effect_flange.cpp 查看文件

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

Loading…
取消
儲存