浏览代码

Increase maximum delay and scale with block size

dds
PaulStoffregen 8 年前
父节点
当前提交
b29d47455f
共有 1 个文件被更改,包括 13 次插入1 次删除
  1. +13
    -1
      effect_delay.h

+ 13
- 1
effect_delay.h 查看文件

@@ -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
{

正在加载...
取消
保存