Browse Source

Don't compile M4 code on LC (but LC still not working)

dds
PaulStoffregen 8 years ago
parent
commit
0d8223e6b0
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      analyze_rms.cpp
  2. +2
    -1
      effect_midside.cpp

+ 1
- 1
analyze_rms.cpp View File

@@ -32,7 +32,7 @@ void AudioAnalyzeRMS::update(void)
{
audio_block_t *block = receiveReadOnly();
if (!block) return;
#if 1
#if defined(KINETISK)
uint32_t *p = (uint32_t *)(block->data);
uint32_t *end = p + AUDIO_BLOCK_SAMPLES/2;
int64_t sum = accum;

+ 2
- 1
effect_midside.cpp View File

@@ -41,7 +41,7 @@ void AudioEffectMidSide::update(void)
if (blockb) release(blockb); // of the blocks is NULL then it's trouble anyway
return;
}
#if defined(KINETISK)
pa = (uint32_t *)(blocka->data);
pb = (uint32_t *)(blockb->data);
end = pa + AUDIO_BLOCK_SAMPLES/2;
@@ -87,6 +87,7 @@ void AudioEffectMidSide::update(void)
}
transmit(blocka, 0); // mid (encoding) or left (decoding)
transmit(blockb, 1); // side (encoding) or right (decoding)
#endif
release(blocka);
release(blockb);
}

Loading…
Cancel
Save