| @@ -31,6 +31,7 @@ | |||
| // 140312 - PAH - slightly faster copy | |||
| __attribute__((unused)) | |||
| static void copy_to_fft_buffer(void *destination, const void *source) | |||
| { | |||
| const uint16_t *src = (const uint16_t *)source; | |||
| @@ -41,6 +42,7 @@ static void copy_to_fft_buffer(void *destination, const void *source) | |||
| } | |||
| } | |||
| __attribute__((unused)) | |||
| static void apply_window_to_fft_buffer(void *buffer, const void *window) | |||
| { | |||
| int16_t *buf = (int16_t *)buffer; | |||
| @@ -73,6 +73,7 @@ AudioEffectFreeverb::AudioEffectFreeverb() : AudioStream(1, inputQueueArray) | |||
| // cleaner sat16 by http://www.moseleyinstruments.com/ | |||
| __attribute__((unused)) | |||
| static int16_t sat16(int32_t n, int rshift) { | |||
| // we should always round towards 0 | |||
| // to avoid recirculating round-off noise | |||
| @@ -25,6 +25,9 @@ | |||
| */ | |||
| #include <Arduino.h> | |||
| #if !defined(KINETISL) | |||
| #include "effect_midside.h" | |||
| void AudioEffectMidSide::update(void) | |||
| @@ -92,3 +95,4 @@ void AudioEffectMidSide::update(void) | |||
| release(blocka); | |||
| release(blockb); | |||
| } | |||
| #endif | |||
| @@ -25,6 +25,9 @@ | |||
| */ | |||
| #include <Arduino.h> | |||
| #if !defined(KINETISL) | |||
| #include "output_tdm.h" | |||
| #include "memcpy_audio.h" | |||
| #include "utility/imxrt_hw.h" | |||
| @@ -336,3 +339,4 @@ void AudioOutputTDM::config_tdm(void) | |||
| #endif | |||
| } | |||
| #endif | |||
| @@ -35,7 +35,7 @@ void AudioSynthNoiseWhite::update(void) | |||
| audio_block_t *block; | |||
| uint32_t *p, *end; | |||
| int32_t n1, n2, gain; | |||
| uint32_t lo, hi, val1, val2; | |||
| uint32_t lo, hi; | |||
| gain = level; | |||
| if (gain == 0) return; | |||
| @@ -46,6 +46,8 @@ void AudioSynthNoiseWhite::update(void) | |||
| lo = seed; | |||
| do { | |||
| #if defined(__ARM_ARCH_7EM__) | |||
| uint32_t val1, val2; | |||
| hi = multiply_16bx16t(16807, lo); // 16807 * (lo >> 16) | |||
| lo = 16807 * (lo & 0xFFFF); | |||
| lo += (hi & 0x7FFF) << 16; | |||
| @@ -75,6 +77,8 @@ void AudioSynthNoiseWhite::update(void) | |||
| *p++ = val1; | |||
| *p++ = val2; | |||
| #elif defined(KINETISL) | |||
| uint32_t val1; | |||
| hi = 16807 * (lo >> 16); | |||
| lo = 16807 * (lo & 0xFFFF); | |||
| lo += (hi & 0x7FFF) << 16; | |||