瀏覽代碼

Merge pull request #362 from MarkTillotson/fix_phase_modulation

Fix phase modulation
dds
Paul Stoffregen 3 年之前
父節點
當前提交
b8a88653f1
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      synth_waveform.cpp

+ 1
- 1
synth_waveform.cpp 查看文件

@@ -280,7 +280,7 @@ void AudioSynthWaveformModulated::update(void)
bp = moddata->data;
for (i=0; i < AUDIO_BLOCK_SAMPLES; i++) {
// more than +/- 180 deg shift by 32 bit overflow of "n"
uint32_t n = (uint16_t)(*bp++) * modulation_factor;
uint32_t n = ((uint32_t)(*bp++)) * modulation_factor;
phasedata[i] = ph + n;
ph += inc;
}

Loading…
取消
儲存