Fixed to compile with T3.x (run only T4.x)

pull/16/merge
boblark 2 years ago
parent 2c66f6cdea
commit 88a600a916
  1. 14
      async_input_spdif3_F32.cpp
  2. 6
      async_input_spdif3_F32.h

@ -407,16 +407,18 @@ int32_t AsyncAudioInputSPDIF3_F32::getHalfFilterLength() const{
return _resampler.getHalfFilterLength(); return _resampler.getHalfFilterLength();
} }
#endif // __IMXRT1062__ // Only for T4.x (__IMXRT1062__).
#endif
#if defined(__MK66FX1M0__) || defined(__MK64FX512__) || defined(__MK20DX256__) || defined(__MKL26Z64__) #if defined(__MK66FX1M0__) || defined(__MK64FX512__) || defined(__MK20DX256__) || defined(__MKL26Z64__)
// empty code to allow compile (but no sound input) on other Teensy models // empty code to allow compile (but no sound input) on other Teensy models
#include "async_input_spdif3.h" #include "async_input_spdif3_F32.h"
AsyncAudioInputSPDIF3_F32::AsyncAudioInputSPDIF3_F32(bool dither, bool noiseshaping,float attenuation, int32_t minHalfFilterLength, int32_t maxHalfFilterLength): // Removed next for T3.x compile. Bob L Jan 2023
AudioStream(0, NULL), _resampler(attenuation, minHalfFilterLength, maxHalfFilterLength) //AsyncAudioInputSPDIF3_F32::AsyncAudioInputSPDIF3_F32(bool dither, bool noiseshaping,float attenuation, int32_t minHalfFilterLength, int32_t maxHalfFilterLength):
{ } // AudioStream(0, NULL), _resampler(attenuation, minHalfFilterLength, maxHalfFilterLength)
// { }
void AsyncAudioInputSPDIF3_F32::begin() { } void AsyncAudioInputSPDIF3_F32::begin() { }
void AsyncAudioInputSPDIF3_F32::update(void) { } void AsyncAudioInputSPDIF3_F32::update(void) { }
double AsyncAudioInputSPDIF3_F32::getBufferedTime() const { return 0; } double AsyncAudioInputSPDIF3_F32::getBufferedTime() const { return 0; }
@ -427,6 +429,4 @@ double AsyncAudioInputSPDIF3_F32::getAttenuation() const { return 0; }
int32_t AsyncAudioInputSPDIF3_F32::getHalfFilterLength() const { return 0; } int32_t AsyncAudioInputSPDIF3_F32::getHalfFilterLength() const { return 0; }
AsyncAudioInputSPDIF3_F32::~AsyncAudioInputSPDIF3_F32() { } AsyncAudioInputSPDIF3_F32::~AsyncAudioInputSPDIF3_F32() { }
#endif #endif

@ -37,6 +37,9 @@
//#define DEBUG_SPDIF_IN //activates debug output //#define DEBUG_SPDIF_IN //activates debug output
// Only for T4.x
// #if defined(__IMXRT1062__)
class Scaler_F32; // internal class Scaler_F32; // internal
class AsyncAudioInputSPDIF3_F32 : public AudioStream_F32 class AsyncAudioInputSPDIF3_F32 : public AudioStream_F32
@ -88,4 +91,7 @@ private:
#endif #endif
}; };
// Only for T4.x
//#endif
#endif #endif
Loading…
Cancel
Save