瀏覽代碼

Merge pull request #385 from FrankBoesing/MoreLCfixes

Fix more Teensy LC warnings
dds
Paul Stoffregen 3 年之前
父節點
當前提交
ccfc3e7d7b
No account linked to committer's email address
共有 5 個文件被更改,包括 16 次插入1 次删除
  1. +2
    -0
      analyze_fft256.cpp
  2. +1
    -0
      effect_freeverb.cpp
  3. +4
    -0
      effect_midside.cpp
  4. +4
    -0
      output_tdm.cpp
  5. +5
    -1
      synth_whitenoise.cpp

+ 2
- 0
analyze_fft256.cpp 查看文件

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

+ 1
- 0
effect_freeverb.cpp 查看文件

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

+ 4
- 0
effect_midside.cpp 查看文件

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

+ 4
- 0
output_tdm.cpp 查看文件

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

+ 5
- 1
synth_whitenoise.cpp 查看文件

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

Loading…
取消
儲存