ERIS CORE

◆ copy_to_fft_buffer()

void erisAudioAnalyzeFFT1024::copy_to_fft_buffer ( void *  destination,
const void *  source,
int  subsample 
)
private

Definition at line 97 of file eris_analyze_fft1024.cpp.

98 {
99  const uint16_t *src = (const uint16_t *)source;
100  uint16_t *dst = (uint16_t *)destination;
101  //Fat Audio - dumb downsample
102  for (; SAMPLING_INDEX < AUDIO_BLOCK_SAMPLES; ) {
103  *dst++ = src[SAMPLING_INDEX];
104  SAMPLING_INDEX+=subsample;
105  }
106  SAMPLING_INDEX -= AUDIO_BLOCK_SAMPLES;
107 }

References SAMPLING_INDEX.

Referenced by update().

+ Here is the caller graph for this function: