Browse Source

Increase maximum delay and scale with block size

dds
PaulStoffregen 8 years ago
parent
commit
b29d47455f
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      effect_delay.h

+ 13
- 1
effect_delay.h View File

@@ -30,7 +30,19 @@
#include "AudioStream.h"
#include "utility/dspinst.h"

#define DELAY_QUEUE_SIZE 117
#if defined(__MK66FX1M0__)
// 2.41 second maximum on Teensy 3.6
#define DELAY_QUEUE_SIZE (106496 / AUDIO_BLOCK_SAMPLES)
#elif defined(__MK64FX512__)
// 1.67 second maximum on Teensy 3.5
#define DELAY_QUEUE_SIZE (73728 / AUDIO_BLOCK_SAMPLES)
#elif defined(__MK20DX256__)
// 0.45 second maximum on Teensy 3.1 & 3.2
#define DELAY_QUEUE_SIZE (19826 / AUDIO_BLOCK_SAMPLES)
#else
// 0.14 second maximum on Teensy 3.0
#define DELAY_QUEUE_SIZE (6144 / AUDIO_BLOCK_SAMPLES)
#endif

class AudioEffectDelay : public AudioStream
{

Loading…
Cancel
Save