瀏覽代碼

Fix AudioSynthWaveformSineModulated amplitude without mod input (thanks neurofun)

https://forum.pjrc.com/threads/48307
dds
PaulStoffregen 7 年之前
父節點
當前提交
368261dcfe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      synth_sine.cpp

+ 1
- 1
synth_sine.cpp 查看文件

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

Loading…
取消
儲存