Pārlūkot izejas kodu

Remove commented performance testing code

dds
Damien Clarke pirms 7 gadiem
vecāks
revīzija
919ff96ad3
1 mainītis faili ar 0 papildinājumiem un 7 dzēšanām
  1. +0
    -7
      effect_waveshaper.cpp

+ 0
- 7
effect_waveshaper.cpp Parādīt failu

@@ -47,9 +47,6 @@ void AudioEffectWaveshaper::update(void)
block = receiveWritable();
if (!block) return;

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

uint16_t x, xa;
int16_t i, ya, yb;
for (i = 0; i < AUDIO_BLOCK_SAMPLES; i++) {
@@ -62,10 +59,6 @@ void AudioEffectWaveshaper::update(void)
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);
release(block);
}

Notiek ielāde…
Atcelt
Saglabāt