Browse Source

Add comment about editing AUDIO_BLOCK_SAMPLES

main
PaulStoffregen 8 years ago
parent
commit
9c88ebefaf
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      teensy3/AudioStream.h

+ 9
- 0
teensy3/AudioStream.h View File

@@ -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…
Cancel
Save