浏览代码

Remove commented performance testing code

dds
Damien Clarke 8 年前
父节点
当前提交
919ff96ad3
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. +0
    -7
      effect_waveshaper.cpp

+ 0
- 7
effect_waveshaper.cpp 查看文件

block = receiveWritable(); block = receiveWritable();
if (!block) return; if (!block) return;


// performance testing...
// unsigned long mcs = micros();

uint16_t x, xa; uint16_t x, xa;
int16_t i, ya, yb; int16_t i, ya, yb;
for (i = 0; i < AUDIO_BLOCK_SAMPLES; i++) { for (i = 0; i < AUDIO_BLOCK_SAMPLES; i++) {
block->data[i] = ya + ((yb - ya) * (x - (xa << lerpshift)) >> lerpshift); block->data[i] = ya + ((yb - ya) * (x - (xa << lerpshift)) >> lerpshift);
} }


// log performance test without compensating for rollover...
// Serial.print("(micros)");
// Serial.println(micros() - mcs);

transmit(block); transmit(block);
release(block); release(block);
} }

正在加载...
取消
保存