瀏覽代碼

Add comment about editing AUDIO_BLOCK_SAMPLES

main
PaulStoffregen 8 年之前
父節點
當前提交
9c88ebefaf
共有 1 個檔案被更改,包括 9 行新增0 行删除
  1. +9
    -0
      teensy3/AudioStream.h

+ 9
- 0
teensy3/AudioStream.h 查看文件

@@ -37,6 +37,15 @@
#include "kinetis.h"
#endif

// AUDIO_BLOCK_SAMPLES determines how many samples the audio library processes
// per update. It may be reduced to achieve lower latency response to events,
// at the expense of higher interrupt and DMA setup overhead.
//
// Less than 32 may not work with some input & output objects. Multiples of 16
// should be used, since some synthesis objects generate 16 samples per loop.
//
// Some parts of the audio library may have hard-coded dependency on 128 samples.
// Please report these on the forum with reproducible test cases.

#if defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
#define AUDIO_BLOCK_SAMPLES 128

Loading…
取消
儲存