Browse Source

adjust #includes per restructure, deps

main
John Robinson 3 years ago
parent
commit
5b33918be9
No known key found for this signature in database
100 changed files with 332 additions and 332 deletions
  1. +80
    -80
      include/audio/Audio.h
  2. +1
    -1
      include/audio/Quantizer.h
  3. +1
    -1
      include/audio/Resampler.h
  4. +3
    -3
      include/audio/analyze_fft1024.h
  5. +3
    -3
      include/audio/analyze_fft256.h
  6. +2
    -2
      include/audio/analyze_notefreq.h
  7. +2
    -2
      include/audio/analyze_peak.h
  8. +2
    -2
      include/audio/analyze_print.h
  9. +2
    -2
      include/audio/analyze_rms.h
  10. +2
    -2
      include/audio/analyze_tonedetect.h
  11. +6
    -6
      include/audio/async_input_spdif3.h
  12. +2
    -2
      include/audio/biquad.h
  13. +1
    -1
      include/audio/control_ak4558.h
  14. +1
    -1
      include/audio/control_cs42448.h
  15. +1
    -1
      include/audio/control_cs4272.h
  16. +2
    -2
      include/audio/control_sgtl5000.h
  17. +2
    -2
      include/audio/control_tlv320aic3206.h
  18. +1
    -1
      include/audio/control_wm8731.h
  19. +2
    -2
      include/audio/effect_bitcrusher.h
  20. +2
    -2
      include/audio/effect_chorus.h
  21. +2
    -2
      include/audio/effect_combine.h
  22. +3
    -3
      include/audio/effect_delay.h
  23. +3
    -3
      include/audio/effect_delay_ext.h
  24. +3
    -3
      include/audio/effect_envelope.h
  25. +2
    -2
      include/audio/effect_fade.h
  26. +2
    -2
      include/audio/effect_flange.h
  27. +2
    -2
      include/audio/effect_freeverb.h
  28. +1
    -1
      include/audio/effect_granular.h
  29. +3
    -3
      include/audio/effect_midside.h
  30. +3
    -3
      include/audio/effect_multiply.h
  31. +2
    -2
      include/audio/effect_rectifier.h
  32. +1
    -1
      include/audio/effect_reverb.h
  33. +2
    -2
      include/audio/effect_waveshaper.h
  34. +2
    -2
      include/audio/filter_biquad.h
  35. +3
    -3
      include/audio/filter_fir.h
  36. +2
    -2
      include/audio/filter_ladder.h
  37. +2
    -2
      include/audio/filter_variable.h
  38. +3
    -3
      include/audio/input_adc.h
  39. +3
    -3
      include/audio/input_adcs.h
  40. +3
    -3
      include/audio/input_i2s.h
  41. +3
    -3
      include/audio/input_i2s2.h
  42. +3
    -3
      include/audio/input_i2s_hex.h
  43. +3
    -3
      include/audio/input_i2s_oct.h
  44. +3
    -3
      include/audio/input_i2s_quad.h
  45. +3
    -3
      include/audio/input_pdm.h
  46. +3
    -3
      include/audio/input_spdif3.h
  47. +3
    -3
      include/audio/input_tdm.h
  48. +3
    -3
      include/audio/input_tdm2.h
  49. +2
    -2
      include/audio/mixer.h
  50. +3
    -3
      include/audio/output_adat.h
  51. +3
    -3
      include/audio/output_dac.h
  52. +3
    -3
      include/audio/output_dacs.h
  53. +3
    -3
      include/audio/output_i2s.h
  54. +3
    -3
      include/audio/output_i2s2.h
  55. +3
    -3
      include/audio/output_i2s_hex.h
  56. +3
    -3
      include/audio/output_i2s_oct.h
  57. +3
    -3
      include/audio/output_i2s_quad.h
  58. +3
    -3
      include/audio/output_mqs.h
  59. +3
    -3
      include/audio/output_pt8211.h
  60. +3
    -3
      include/audio/output_pt8211_2.h
  61. +3
    -3
      include/audio/output_pwm.h
  62. +3
    -3
      include/audio/output_spdif.h
  63. +3
    -3
      include/audio/output_spdif2.h
  64. +3
    -3
      include/audio/output_spdif3.h
  65. +3
    -3
      include/audio/output_tdm.h
  66. +3
    -3
      include/audio/output_tdm2.h
  67. +2
    -2
      include/audio/play_memory.h
  68. +2
    -2
      include/audio/play_queue.h
  69. +3
    -3
      include/audio/play_sd_raw.h
  70. +3
    -3
      include/audio/play_sd_wav.h
  71. +3
    -3
      include/audio/play_serialflash_raw.h
  72. +2
    -2
      include/audio/record_queue.h
  73. +3
    -3
      include/audio/spi_interrupt.h
  74. +3
    -3
      include/audio/synth_dc.h
  75. +3
    -3
      include/audio/synth_karplusstrong.h
  76. +3
    -3
      include/audio/synth_pinknoise.h
  77. +3
    -3
      include/audio/synth_pwm.h
  78. +2
    -2
      include/audio/synth_simple_drum.h
  79. +3
    -3
      include/audio/synth_sine.h
  80. +2
    -2
      include/audio/synth_tonesweep.h
  81. +3
    -3
      include/audio/synth_waveform.h
  82. +2
    -2
      include/audio/synth_wavetable.h
  83. +3
    -3
      include/audio/synth_whitenoise.h
  84. +2
    -2
      include/audio/utility/imxrt_hw.h
  85. +1
    -1
      src/audio/Quantizer.cpp
  86. +1
    -1
      src/audio/Resampler.cpp
  87. +4
    -4
      src/audio/analyze_fft1024.cpp
  88. +4
    -4
      src/audio/analyze_fft256.cpp
  89. +4
    -4
      src/audio/analyze_notefreq.cpp
  90. +2
    -2
      src/audio/analyze_peak.cpp
  91. +2
    -2
      src/audio/analyze_print.cpp
  92. +3
    -3
      src/audio/analyze_rms.cpp
  93. +3
    -3
      src/audio/analyze_tonedetect.cpp
  94. +4
    -4
      src/audio/async_input_spdif3.cpp
  95. +4
    -4
      src/audio/control_ak4558.cpp
  96. +3
    -3
      src/audio/control_cs42448.cpp
  97. +3
    -3
      src/audio/control_cs4272.cpp
  98. +3
    -3
      src/audio/control_sgtl5000.cpp
  99. +2
    -2
      src/audio/control_tlv320aic3206.cpp
  100. +0
    -0
      src/audio/control_wm8731.cpp

+ 80
- 80
include/audio/Audio.h View File

#error "The Audio Library only works with Teensy 3.X. Teensy 2.0 is unsupported." #error "The Audio Library only works with Teensy 3.X. Teensy 2.0 is unsupported."
#endif #endif


#include "DMAChannel.h"
#include <core/DMAChannel.h>
#if !defined(DMACHANNEL_HAS_BEGIN) || !defined(DMACHANNEL_HAS_BOOLEAN_CTOR) #if !defined(DMACHANNEL_HAS_BEGIN) || !defined(DMACHANNEL_HAS_BOOLEAN_CTOR)
#error "You need to update DMAChannel.h & DMAChannel.cpp" #error "You need to update DMAChannel.h & DMAChannel.cpp"
#error "https://github.com/PaulStoffregen/cores/blob/master/teensy3/DMAChannel.h" #error "https://github.com/PaulStoffregen/cores/blob/master/teensy3/DMAChannel.h"
#define AudioInterrupts() (NVIC_ENABLE_IRQ(IRQ_SOFTWARE)) #define AudioInterrupts() (NVIC_ENABLE_IRQ(IRQ_SOFTWARE))


// include all the library headers, so a sketch can use a single // include all the library headers, so a sketch can use a single
// #include <Audio.h> to get the whole library
// #include <audio/Audio.h> to get the whole library
// //
#include "analyze_fft256.h"
#include "analyze_fft1024.h"
#include "analyze_print.h"
#include "analyze_tonedetect.h"
#include "analyze_notefreq.h"
#include "analyze_peak.h"
#include "analyze_rms.h"
#include "async_input_spdif3.h"
#include "control_sgtl5000.h"
#include "control_wm8731.h"
#include "control_ak4558.h"
#include "control_cs4272.h"
#include "control_cs42448.h"
#include "control_tlv320aic3206.h"
#include "effect_bitcrusher.h"
#include "effect_chorus.h"
#include "effect_fade.h"
#include "effect_flange.h"
#include "effect_envelope.h"
#include "effect_multiply.h"
#include "effect_delay.h"
#include "effect_delay_ext.h"
#include "effect_midside.h"
#include "effect_reverb.h"
#include "effect_freeverb.h"
#include "effect_waveshaper.h"
#include "effect_granular.h"
#include "effect_combine.h"
#include "effect_rectifier.h"
#include "filter_biquad.h"
#include "filter_fir.h"
#include "filter_variable.h"
#include "filter_ladder.h"
#include "input_adc.h"
#include "input_adcs.h"
#include "input_i2s.h"
#include "input_i2s2.h"
#include "input_i2s_quad.h"
#include "input_i2s_hex.h"
#include "input_i2s_oct.h"
#include "input_tdm.h"
#include "input_tdm2.h"
#include "input_pdm.h"
#include "input_spdif3.h"
#include "mixer.h"
#include "output_dac.h"
#include "output_dacs.h"
#include "output_i2s.h"
#include "output_i2s2.h"
#include "output_i2s_quad.h"
#include "output_i2s_hex.h"
#include "output_i2s_oct.h"
#include "output_mqs.h"
#include "output_pwm.h"
#include "output_spdif.h"
#include "output_spdif2.h"
#include "output_spdif3.h"
#include "output_pt8211.h"
#include "output_pt8211_2.h"
#include "output_tdm.h"
#include "output_tdm2.h"
#include "output_adat.h"
#include "play_memory.h"
#include "play_queue.h"
#include "play_sd_raw.h"
#include "play_sd_wav.h"
#include "play_serialflash_raw.h"
#include "record_queue.h"
#include "synth_tonesweep.h"
#include "synth_sine.h"
#include "synth_waveform.h"
#include "synth_dc.h"
#include "synth_whitenoise.h"
#include "synth_pinknoise.h"
#include "synth_karplusstrong.h"
#include "synth_simple_drum.h"
#include "synth_pwm.h"
#include "synth_wavetable.h"
#include "./analyze_fft256.h"
#include "./analyze_fft1024.h"
#include "./analyze_print.h"
#include "./analyze_tonedetect.h"
#include "./analyze_notefreq.h"
#include "./analyze_peak.h"
#include "./analyze_rms.h"
#include "./async_input_spdif3.h"
#include "./control_sgtl5000.h"
#include "./control_wm8731.h"
#include "./control_ak4558.h"
#include "./control_cs4272.h"
#include "./control_cs42448.h"
#include "./control_tlv320aic3206.h"
#include "./effect_bitcrusher.h"
#include "./effect_chorus.h"
#include "./effect_fade.h"
#include "./effect_flange.h"
#include "./effect_envelope.h"
#include "./effect_multiply.h"
#include "./effect_delay.h"
#include "./effect_delay_ext.h"
#include "./effect_midside.h"
#include "./effect_reverb.h"
#include "./effect_freeverb.h"
#include "./effect_waveshaper.h"
#include "./effect_granular.h"
#include "./effect_combine.h"
#include "./effect_rectifier.h"
#include "./filter_biquad.h"
#include "./filter_fir.h"
#include "./filter_variable.h"
#include "./filter_ladder.h"
#include "./input_adc.h"
#include "./input_adcs.h"
#include "./input_i2s.h"
#include "./input_i2s2.h"
#include "./input_i2s_quad.h"
#include "./input_i2s_hex.h"
#include "./input_i2s_oct.h"
#include "./input_tdm.h"
#include "./input_tdm2.h"
#include "./input_pdm.h"
#include "./input_spdif3.h"
#include "./mixer.h"
#include "./output_dac.h"
#include "./output_dacs.h"
#include "./output_i2s.h"
#include "./output_i2s2.h"
#include "./output_i2s_quad.h"
#include "./output_i2s_hex.h"
#include "./output_i2s_oct.h"
#include "./output_mqs.h"
#include "./output_pwm.h"
#include "./output_spdif.h"
#include "./output_spdif2.h"
#include "./output_spdif3.h"
#include "./output_pt8211.h"
#include "./output_pt8211_2.h"
#include "./output_tdm.h"
#include "./output_tdm2.h"
#include "./output_adat.h"
#include "./play_memory.h"
#include "./play_queue.h"
#include "./play_sd_raw.h"
#include "./play_sd_wav.h"
#include "./play_serialflash_raw.h"
#include "./record_queue.h"
#include "./synth_tonesweep.h"
#include "./synth_sine.h"
#include "./synth_waveform.h"
#include "./synth_dc.h"
#include "./synth_whitenoise.h"
#include "./synth_pinknoise.h"
#include "./synth_karplusstrong.h"
#include "./synth_simple_drum.h"
#include "./synth_pwm.h"
#include "./synth_wavetable.h"


#endif #endif

+ 1
- 1
include/audio/Quantizer.h View File

#ifndef quantizer_h_ #ifndef quantizer_h_
#define quantizer_h_ #define quantizer_h_


#include "Arduino.h"
#include <core/Arduino.h>


//#define DEBUG_QUANTIZER //#define DEBUG_QUANTIZER



+ 1
- 1
include/audio/Resampler.h View File

#define resampler_h_ #define resampler_h_




#include "Arduino.h"
#include <core/Arduino.h>
//#define DEBUG_RESAMPLER //activates debug output //#define DEBUG_RESAMPLER //activates debug output


#define MAX_FILTER_SAMPLES 40961 //=1024*20 +1 #define MAX_FILTER_SAMPLES 40961 //=1024*20 +1

+ 3
- 3
include/audio/analyze_fft1024.h View File

#ifndef analyze_fft1024_h_ #ifndef analyze_fft1024_h_
#define analyze_fft1024_h_ #define analyze_fft1024_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "arm_math.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/arm_math.h>


// windows.c // windows.c
extern "C" { extern "C" {

+ 3
- 3
include/audio/analyze_fft256.h View File

#ifndef analyze_fft256_h_ #ifndef analyze_fft256_h_
#define analyze_fft256_h_ #define analyze_fft256_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "arm_math.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/arm_math.h>


// windows.c // windows.c
extern "C" { extern "C" {

+ 2
- 2
include/audio/analyze_notefreq.h View File

#ifndef AudioAnalyzeNoteFrequency_h_ #ifndef AudioAnalyzeNoteFrequency_h_
#define AudioAnalyzeNoteFrequency_h_ #define AudioAnalyzeNoteFrequency_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
/*********************************************************************** /***********************************************************************
* Safe to adjust these values below * * Safe to adjust these values below *
* * * *

+ 2
- 2
include/audio/analyze_peak.h View File

#ifndef analyze_peakdetect_h_ #ifndef analyze_peakdetect_h_
#define analyze_peakdetect_h_ #define analyze_peakdetect_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioAnalyzePeak : public AudioStream class AudioAnalyzePeak : public AudioStream
{ {

+ 2
- 2
include/audio/analyze_print.h View File

#ifndef analyze_print_h_ #ifndef analyze_print_h_
#define analyze_print_h_ #define analyze_print_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioAnalyzePrint : public AudioStream class AudioAnalyzePrint : public AudioStream
{ {

+ 2
- 2
include/audio/analyze_rms.h View File

#ifndef analyze_rms_h_ #ifndef analyze_rms_h_
#define analyze_rms_h_ #define analyze_rms_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioAnalyzeRMS : public AudioStream class AudioAnalyzeRMS : public AudioStream
{ {

+ 2
- 2
include/audio/analyze_tonedetect.h View File

#ifndef analyze_tonedetect_h_ #ifndef analyze_tonedetect_h_
#define analyze_tonedetect_h_ #define analyze_tonedetect_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioAnalyzeToneDetect : public AudioStream class AudioAnalyzeToneDetect : public AudioStream
{ {

+ 6
- 6
include/audio/async_input_spdif3.h View File

*/ */
#ifndef async_input_spdif3_h_ #ifndef async_input_spdif3_h_
#define async_input_spdif3_h_ #define async_input_spdif3_h_
#include "Resampler.h"
#include "Quantizer.h"
#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <arm_math.h>
#include "./Resampler.h"
#include "./Quantizer.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>
#include <core/arm_math.h>


//#define DEBUG_SPDIF_IN //activates debug output //#define DEBUG_SPDIF_IN //activates debug output



+ 2
- 2
include/audio/biquad.h View File

#ifndef biquad_coeffs_h_ #ifndef biquad_coeffs_h_
#define biquad_coeffs_h_ #define biquad_coeffs_h_


#include "Arduino.h"
#include <arm_math.h>
#include <core/Arduino.h>
#include <core/arm_math.h>
#include <type_traits> #include <type_traits>


enum class BiquadType { enum class BiquadType {

+ 1
- 1
include/audio/control_ak4558.h View File

#ifndef control_ak4558_h_ #ifndef control_ak4558_h_
#define control_ak4558_h_ #define control_ak4558_h_


#include "AudioControl.h"
#include "./AudioControl.h"


#define AK4558_SERIAL_DEBUG 1 #define AK4558_SERIAL_DEBUG 1
//if 1, then Serial Monitor will show debug information about configuration of the AK4558 //if 1, then Serial Monitor will show debug information about configuration of the AK4558

+ 1
- 1
include/audio/control_cs42448.h View File

#ifndef control_cs42448_h_ #ifndef control_cs42448_h_
#define control_cs42448_h_ #define control_cs42448_h_


#include "AudioControl.h"
#include "./AudioControl.h"
#include <math.h> #include <math.h>


class AudioControlCS42448 : public AudioControl class AudioControlCS42448 : public AudioControl

+ 1
- 1
include/audio/control_cs4272.h View File

#ifndef control_cs4272_h_ #ifndef control_cs4272_h_
#define control_cs4272_h_ #define control_cs4272_h_


#include "AudioControl.h"
#include "./AudioControl.h"


class AudioControlCS4272 : public AudioControl class AudioControlCS4272 : public AudioControl
{ {

+ 2
- 2
include/audio/control_sgtl5000.h View File

#ifndef control_sgtl5000_h_ #ifndef control_sgtl5000_h_
#define control_sgtl5000_h_ #define control_sgtl5000_h_


#include <AudioStream.h>
#include "AudioControl.h"
#include <core/AudioStream.h>
#include "./AudioControl.h"


// SGTL5000-specific defines for headphones // SGTL5000-specific defines for headphones
#define AUDIO_HEADPHONE_DAC 0 #define AUDIO_HEADPHONE_DAC 0

+ 2
- 2
include/audio/control_tlv320aic3206.h View File

#ifndef control_tlv320aic3206_h_ #ifndef control_tlv320aic3206_h_
#define control_tlv320aic3206_h_ #define control_tlv320aic3206_h_


#include "AudioControl.h"
#include <Arduino.h>
#include "./AudioControl.h"
#include <core/Arduino.h>


//convenience names to use with inputSelect() to set whnch analog inputs to use //convenience names to use with inputSelect() to set whnch analog inputs to use
#define AIC3206_INPUT_IN1 1 //uses IN1 #define AIC3206_INPUT_IN1 1 //uses IN1

+ 1
- 1
include/audio/control_wm8731.h View File

#ifndef control_wm8731_h_ #ifndef control_wm8731_h_
#define control_wm8731_h_ #define control_wm8731_h_


#include "AudioControl.h"
#include "./AudioControl.h"


class AudioControlWM8731 : public AudioControl class AudioControlWM8731 : public AudioControl
{ {

+ 2
- 2
include/audio/effect_bitcrusher.h View File

#ifndef effect_bitcrusher_h_ #ifndef effect_bitcrusher_h_
#define effect_bitcrusher_h_ #define effect_bitcrusher_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioEffectBitcrusher : public AudioStream class AudioEffectBitcrusher : public AudioStream
{ {

+ 2
- 2
include/audio/effect_chorus.h View File

#ifndef effect_chorus_h_ #ifndef effect_chorus_h_
#define effect_chorus_h_ #define effect_chorus_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


/******************************************************************/ /******************************************************************/



+ 2
- 2
include/audio/effect_combine.h View File



#ifndef effect_digital_combine_h_ #ifndef effect_digital_combine_h_
#define effect_digital_combine_h_ #define effect_digital_combine_h_
#include <Arduino.h>
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioEffectDigitalCombine : public AudioStream class AudioEffectDigitalCombine : public AudioStream
{ {

+ 3
- 3
include/audio/effect_delay.h View File



#ifndef effect_delay_h_ #ifndef effect_delay_h_
#define effect_delay_h_ #define effect_delay_h_
#include "Arduino.h"
#include "AudioStream.h"
#include "utility/dspinst.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include "./utility/dspinst.h"


#if defined(__IMXRT1062__) #if defined(__IMXRT1062__)
// 4.00 second maximum on Teensy 4.0 // 4.00 second maximum on Teensy 4.0

+ 3
- 3
include/audio/effect_delay_ext.h View File



#ifndef effect_delay_ext_h_ #ifndef effect_delay_ext_h_
#define effect_delay_ext_h_ #define effect_delay_ext_h_
#include "Arduino.h"
#include "AudioStream.h"
#include "spi_interrupt.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include "./spi_interrupt.h"


enum AudioEffectDelayMemoryType_t { enum AudioEffectDelayMemoryType_t {
AUDIO_MEMORY_23LC1024 = 0, // 128k x 8 S-RAM AUDIO_MEMORY_23LC1024 = 0, // 128k x 8 S-RAM

+ 3
- 3
include/audio/effect_envelope.h View File



#ifndef effect_envelope_h_ #ifndef effect_envelope_h_
#define effect_envelope_h_ #define effect_envelope_h_
#include "Arduino.h"
#include "AudioStream.h"
#include "utility/dspinst.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include "./utility/dspinst.h"


#define SAMPLES_PER_MSEC (AUDIO_SAMPLE_RATE_EXACT/1000.0) #define SAMPLES_PER_MSEC (AUDIO_SAMPLE_RATE_EXACT/1000.0)



+ 2
- 2
include/audio/effect_fade.h View File

#ifndef effect_fade_h_ #ifndef effect_fade_h_
#define effect_fade_h_ #define effect_fade_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioEffectFade : public AudioStream class AudioEffectFade : public AudioStream
{ {

+ 2
- 2
include/audio/effect_flange.h View File

#ifndef effect_flange_h_ #ifndef effect_flange_h_
#define effect_flange_h_ #define effect_flange_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


/******************************************************************/ /******************************************************************/
// A u d i o E f f e c t F l a n g e // A u d i o E f f e c t F l a n g e

+ 2
- 2
include/audio/effect_freeverb.h View File



#ifndef effect_freeverb_h_ #ifndef effect_freeverb_h_
#define effect_freeverb_h_ #define effect_freeverb_h_
#include <Arduino.h>
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioEffectFreeverb : public AudioStream class AudioEffectFreeverb : public AudioStream
{ {

+ 1
- 1
include/audio/effect_granular.h View File

* SOFTWARE. * SOFTWARE.
*/ */


#include "AudioStream.h"
#include <core/AudioStream.h>


class AudioEffectGranular : public AudioStream class AudioEffectGranular : public AudioStream
{ {

+ 3
- 3
include/audio/effect_midside.h View File

#ifndef effect_midside_decode_h_ #ifndef effect_midside_decode_h_
#define effect_midside_decode_h_ #define effect_midside_decode_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


#include "utility/dspinst.h"
#include "./utility/dspinst.h"




/** /**

+ 3
- 3
include/audio/effect_multiply.h View File



#ifndef effect_multiply_h_ #ifndef effect_multiply_h_
#define effect_multiply_h_ #define effect_multiply_h_
#include "Arduino.h"
#include "AudioStream.h"
#include "utility/dspinst.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include "./utility/dspinst.h"


class AudioEffectMultiply : public AudioStream class AudioEffectMultiply : public AudioStream
{ {

+ 2
- 2
include/audio/effect_rectifier.h View File

#ifndef effect_rectifier_h_ #ifndef effect_rectifier_h_
#define effect_rectifier_h_ #define effect_rectifier_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioEffectRectifier: public AudioStream class AudioEffectRectifier: public AudioStream
{ {

+ 1
- 1
include/audio/effect_reverb.h View File

#ifndef effect_reverb_ #ifndef effect_reverb_
#define effect_reverb_ #define effect_reverb_


#include "AudioStream.h"
#include <core/AudioStream.h>


#define APF1_BUF_LEN 600 #define APF1_BUF_LEN 600
#define APF2_BUF_LEN 1300 #define APF2_BUF_LEN 1300

+ 2
- 2
include/audio/effect_waveshaper.h View File

#ifndef effect_waveshaper_h_ #ifndef effect_waveshaper_h_
#define effect_waveshaper_h_ #define effect_waveshaper_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioEffectWaveshaper : public AudioStream class AudioEffectWaveshaper : public AudioStream
{ {

+ 2
- 2
include/audio/filter_biquad.h View File

#ifndef filter_biquad_h_ #ifndef filter_biquad_h_
#define filter_biquad_h_ #define filter_biquad_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioFilterBiquad : public AudioStream class AudioFilterBiquad : public AudioStream
{ {

+ 3
- 3
include/audio/filter_fir.h View File

#ifndef filter_fir_h_ #ifndef filter_fir_h_
#define filter_fir_h_ #define filter_fir_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "arm_math.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/arm_math.h>


// Indicates that the code should just pass through the audio // Indicates that the code should just pass through the audio
// without any filtering (as opposed to doing nothing at all) // without any filtering (as opposed to doing nothing at all)

+ 2
- 2
include/audio/filter_ladder.h View File

#ifndef filter_ladder_h_ #ifndef filter_ladder_h_
#define filter_ladder_h_ #define filter_ladder_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioFilterLadder: public AudioStream class AudioFilterLadder: public AudioStream
{ {

+ 2
- 2
include/audio/filter_variable.h View File

#ifndef filter_variable_h_ #ifndef filter_variable_h_
#define filter_variable_h_ #define filter_variable_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioFilterStateVariable: public AudioStream class AudioFilterStateVariable: public AudioStream
{ {

+ 3
- 3
include/audio/input_adc.h View File

#ifndef input_adc_h_ #ifndef input_adc_h_
#define input_adc_h_ #define input_adc_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioInputAnalog : public AudioStream class AudioInputAnalog : public AudioStream
{ {

+ 3
- 3
include/audio/input_adcs.h View File

#ifndef input_adcs_h_ #ifndef input_adcs_h_
#define input_adcs_h_ #define input_adcs_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioInputAnalogStereo : public AudioStream class AudioInputAnalogStereo : public AudioStream
{ {

+ 3
- 3
include/audio/input_i2s.h View File

#ifndef _input_i2s_h_ #ifndef _input_i2s_h_
#define _input_i2s_h_ #define _input_i2s_h_


#include <Arduino.h>
#include <AudioStream.h>
#include <DMAChannel.h>
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioInputI2S : public AudioStream class AudioInputI2S : public AudioStream
{ {

+ 3
- 3
include/audio/input_i2s2.h View File

#ifndef _input_i2s2_h_ #ifndef _input_i2s2_h_
#define _input_i2s2_h_ #define _input_i2s2_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioInputI2S2 : public AudioStream class AudioInputI2S2 : public AudioStream
{ {

+ 3
- 3
include/audio/input_i2s_hex.h View File

#ifndef _input_i2s_hex_h_ #ifndef _input_i2s_hex_h_
#define _input_i2s_hex_h_ #define _input_i2s_hex_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioInputI2SHex : public AudioStream class AudioInputI2SHex : public AudioStream
{ {

+ 3
- 3
include/audio/input_i2s_oct.h View File

#ifndef _input_i2s_oct_h_ #ifndef _input_i2s_oct_h_
#define _input_i2s_oct_h_ #define _input_i2s_oct_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioInputI2SOct : public AudioStream class AudioInputI2SOct : public AudioStream
{ {

+ 3
- 3
include/audio/input_i2s_quad.h View File

#ifndef _input_i2s_quad_h_ #ifndef _input_i2s_quad_h_
#define _input_i2s_quad_h_ #define _input_i2s_quad_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioInputI2SQuad : public AudioStream class AudioInputI2SQuad : public AudioStream
{ {

+ 3
- 3
include/audio/input_pdm.h View File

#ifndef _input_pdm_h_ #ifndef _input_pdm_h_
#define _input_pdm_h_ #define _input_pdm_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioInputPDM : public AudioStream class AudioInputPDM : public AudioStream
{ {

+ 3
- 3
include/audio/input_spdif3.h View File

#ifndef _input_spdif3_h_ #ifndef _input_spdif3_h_
#define _input_spdif3_h_ #define _input_spdif3_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioInputSPDIF3 : public AudioStream class AudioInputSPDIF3 : public AudioStream
{ {

+ 3
- 3
include/audio/input_tdm.h View File

#ifndef _input_tdm_h_ #ifndef _input_tdm_h_
#define _input_tdm_h_ #define _input_tdm_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioInputTDM : public AudioStream class AudioInputTDM : public AudioStream
{ {

+ 3
- 3
include/audio/input_tdm2.h View File

#ifndef _input_tdm2_h_ #ifndef _input_tdm2_h_
#define _input_tdm2_h_ #define _input_tdm2_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioInputTDM2 : public AudioStream class AudioInputTDM2 : public AudioStream
{ {

+ 2
- 2
include/audio/mixer.h View File

#ifndef mixer_h_ #ifndef mixer_h_
#define mixer_h_ #define mixer_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioMixer4 : public AudioStream class AudioMixer4 : public AudioStream
{ {

+ 3
- 3
include/audio/output_adat.h View File

#ifndef output_ADAT_h_ #ifndef output_ADAT_h_
#define output_ADAT_h_ #define output_ADAT_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioOutputADAT : public AudioStream class AudioOutputADAT : public AudioStream
{ {

+ 3
- 3
include/audio/output_dac.h View File

#ifndef output_dac_h_ #ifndef output_dac_h_
#define output_dac_h_ #define output_dac_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioOutputAnalog : public AudioStream class AudioOutputAnalog : public AudioStream
{ {

+ 3
- 3
include/audio/output_dacs.h View File

#ifndef output_dacs_h_ #ifndef output_dacs_h_
#define output_dacs_h_ #define output_dacs_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioOutputAnalogStereo : public AudioStream class AudioOutputAnalogStereo : public AudioStream
{ {

+ 3
- 3
include/audio/output_i2s.h View File

#ifndef output_i2s_h_ #ifndef output_i2s_h_
#define output_i2s_h_ #define output_i2s_h_


#include <Arduino.h>
#include <AudioStream.h>
#include <DMAChannel.h>
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>




#if !defined(KINETISL) #if !defined(KINETISL)

+ 3
- 3
include/audio/output_i2s2.h View File

#ifndef output_i2s2_h_ #ifndef output_i2s2_h_
#define output_i2s2_h_ #define output_i2s2_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>




class AudioOutputI2S2 : public AudioStream class AudioOutputI2S2 : public AudioStream

+ 3
- 3
include/audio/output_i2s_hex.h View File

#ifndef output_i2s_hex_h_ #ifndef output_i2s_hex_h_
#define output_i2s_hex_h_ #define output_i2s_hex_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioOutputI2SHex : public AudioStream class AudioOutputI2SHex : public AudioStream
{ {

+ 3
- 3
include/audio/output_i2s_oct.h View File

#ifndef output_i2s_oct_h_ #ifndef output_i2s_oct_h_
#define output_i2s_oct_h_ #define output_i2s_oct_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioOutputI2SOct : public AudioStream class AudioOutputI2SOct : public AudioStream
{ {

+ 3
- 3
include/audio/output_i2s_quad.h View File

#ifndef output_i2s_quad_h_ #ifndef output_i2s_quad_h_
#define output_i2s_quad_h_ #define output_i2s_quad_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioOutputI2SQuad : public AudioStream class AudioOutputI2SQuad : public AudioStream
{ {

+ 3
- 3
include/audio/output_mqs.h View File

#ifndef output_mqs_h_ #ifndef output_mqs_h_
#define output_mqs_h_ #define output_mqs_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioOutputMQS : public AudioStream class AudioOutputMQS : public AudioStream
{ {

+ 3
- 3
include/audio/output_pt8211.h View File

#ifndef output_pt8211_h_ #ifndef output_pt8211_h_
#define output_pt8211_h_ #define output_pt8211_h_


#include <Arduino.h>
#include <AudioStream.h>
#include <DMAChannel.h>
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>




#if !defined(KINETISL) #if !defined(KINETISL)

+ 3
- 3
include/audio/output_pt8211_2.h View File

// #define AUDIO_PT8211_INTERPOLATION_LINEAR // #define AUDIO_PT8211_INTERPOLATION_LINEAR
#define AUDIO_PT8211_INTERPOLATION_CIC #define AUDIO_PT8211_INTERPOLATION_CIC


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioOutputPT8211_2 : public AudioStream class AudioOutputPT8211_2 : public AudioStream
{ {

+ 3
- 3
include/audio/output_pwm.h View File

#ifndef output_pwm_h_ #ifndef output_pwm_h_
#define output_pwm_h_ #define output_pwm_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


#if defined(__IMXRT1062__) #if defined(__IMXRT1062__)
struct _pwm_pin_info_struct { struct _pwm_pin_info_struct {

+ 3
- 3
include/audio/output_spdif.h View File

#ifndef output_SPDIF_h_ #ifndef output_SPDIF_h_
#define output_SPDIF_h_ #define output_SPDIF_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioOutputSPDIF : public AudioStream class AudioOutputSPDIF : public AudioStream
{ {

+ 3
- 3
include/audio/output_spdif2.h View File

#ifndef output_SPDIF2_h_ #ifndef output_SPDIF2_h_
#define output_SPDIF2_h_ #define output_SPDIF2_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioOutputSPDIF2 : public AudioStream class AudioOutputSPDIF2 : public AudioStream
{ {

+ 3
- 3
include/audio/output_spdif3.h View File

#ifndef output_SPDIF3_h_ #ifndef output_SPDIF3_h_
#define output_SPDIF3_h_ #define output_SPDIF3_h_


#include <Arduino.h>
#include <AudioStream.h>
#include <DMAChannel.h>
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioOutputSPDIF3 : public AudioStream class AudioOutputSPDIF3 : public AudioStream
{ {

+ 3
- 3
include/audio/output_tdm.h View File

#ifndef output_tdm_h_ #ifndef output_tdm_h_
#define output_tdm_h_ #define output_tdm_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioOutputTDM : public AudioStream class AudioOutputTDM : public AudioStream
{ {

+ 3
- 3
include/audio/output_tdm2.h View File

#ifndef output_tdm2_h_ #ifndef output_tdm2_h_
#define output_tdm2_h_ #define output_tdm2_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "DMAChannel.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/DMAChannel.h>


class AudioOutputTDM2 : public AudioStream class AudioOutputTDM2 : public AudioStream
{ {

+ 2
- 2
include/audio/play_memory.h View File

#ifndef play_memory_h_ #ifndef play_memory_h_
#define play_memory_h_ #define play_memory_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioPlayMemory : public AudioStream class AudioPlayMemory : public AudioStream
{ {

+ 2
- 2
include/audio/play_queue.h View File

#ifndef play_queue_h_ #ifndef play_queue_h_
#define play_queue_h_ #define play_queue_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioPlayQueue : public AudioStream class AudioPlayQueue : public AudioStream
{ {

+ 3
- 3
include/audio/play_sd_raw.h View File

#ifndef play_sd_raw_h_ #ifndef play_sd_raw_h_
#define play_sd_raw_h_ #define play_sd_raw_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "SD.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <sd/SD.h>


class AudioPlaySdRaw : public AudioStream class AudioPlaySdRaw : public AudioStream
{ {

+ 3
- 3
include/audio/play_sd_wav.h View File

#ifndef play_sd_wav_h_ #ifndef play_sd_wav_h_
#define play_sd_wav_h_ #define play_sd_wav_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "SD.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <sd/SD.h>


class AudioPlaySdWav : public AudioStream class AudioPlaySdWav : public AudioStream
{ {

+ 3
- 3
include/audio/play_serialflash_raw.h View File

#ifndef play_serial_raw_h_ #ifndef play_serial_raw_h_
#define play_serial_raw_h_ #define play_serial_raw_h_


#include "Arduino.h"
#include <AudioStream.h>
#include <SerialFlash.h>
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <serial-flash/SerialFlash.h>


class AudioPlaySerialflashRaw : public AudioStream class AudioPlaySerialflashRaw : public AudioStream
{ {

+ 2
- 2
include/audio/record_queue.h View File

#ifndef record_queue_h_ #ifndef record_queue_h_
#define record_queue_h_ #define record_queue_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


class AudioRecordQueue : public AudioStream class AudioRecordQueue : public AudioStream
{ {

+ 3
- 3
include/audio/spi_interrupt.h View File

#ifndef audio_spi_interrupt_h_ #ifndef audio_spi_interrupt_h_
#define audio_spi_interrupt_h_ #define audio_spi_interrupt_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "SPI.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <spi/SPI.h>


static inline void AudioStartUsingSPI(void) __attribute__((always_inline, unused)); static inline void AudioStartUsingSPI(void) __attribute__((always_inline, unused));
static inline void AudioStopUsingSPI(void) __attribute__((always_inline, unused)); static inline void AudioStopUsingSPI(void) __attribute__((always_inline, unused));

+ 3
- 3
include/audio/synth_dc.h View File



#ifndef synth_dc_h_ #ifndef synth_dc_h_
#define synth_dc_h_ #define synth_dc_h_
#include "Arduino.h"
#include "AudioStream.h"
#include "utility/dspinst.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include "./utility/dspinst.h"


// compute (a - b) / c // compute (a - b) / c
// handling 32 bit interger overflow at every step // handling 32 bit interger overflow at every step

+ 3
- 3
include/audio/synth_karplusstrong.h View File



#ifndef synth_karplusstrong_h_ #ifndef synth_karplusstrong_h_
#define synth_karplusstrong_h_ #define synth_karplusstrong_h_
#include "Arduino.h"
#include "AudioStream.h"
#include "utility/dspinst.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include "./utility/dspinst.h"


class AudioSynthKarplusStrong : public AudioStream class AudioSynthKarplusStrong : public AudioStream
{ {

+ 3
- 3
include/audio/synth_pinknoise.h View File



#ifndef synth_pinknoise_h_ #ifndef synth_pinknoise_h_
#define synth_pinknoise_h_ #define synth_pinknoise_h_
#include "Arduino.h"
#include "AudioStream.h"
#include "utility/dspinst.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include "./utility/dspinst.h"


class AudioSynthNoisePink : public AudioStream class AudioSynthNoisePink : public AudioStream
{ {

+ 3
- 3
include/audio/synth_pwm.h View File

#ifndef synth_pwm_h_ #ifndef synth_pwm_h_
#define synth_pwm_h_ #define synth_pwm_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "arm_math.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/arm_math.h>


class AudioSynthWaveformPWM : public AudioStream class AudioSynthWaveformPWM : public AudioStream
{ {

+ 2
- 2
include/audio/synth_simple_drum.h View File



#ifndef _SYNTH_SIMPLE_DRUM_H_ #ifndef _SYNTH_SIMPLE_DRUM_H_
#define _SYNTH_SIMPLE_DRUM_H_ #define _SYNTH_SIMPLE_DRUM_H_
#include "AudioStream.h"
#include "utility/dspinst.h"
#include <core/AudioStream.h>
#include "./utility/dspinst.h"


class AudioSynthSimpleDrum : public AudioStream class AudioSynthSimpleDrum : public AudioStream
{ {

+ 3
- 3
include/audio/synth_sine.h View File

#ifndef synth_sine_h_ #ifndef synth_sine_h_
#define synth_sine_h_ #define synth_sine_h_


#include "Arduino.h"
#include "AudioStream.h"
#include "arm_math.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/arm_math.h>


// TODO: investigate making a high resolution sine wave // TODO: investigate making a high resolution sine wave
// using Taylor series expansion. // using Taylor series expansion.

+ 2
- 2
include/audio/synth_tonesweep.h View File

#ifndef synth_tonesweep_h_ #ifndef synth_tonesweep_h_
#define synth_tonesweep_h_ #define synth_tonesweep_h_


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>


// A u d i o S y n t h T o n e S w e e p // A u d i o S y n t h T o n e S w e e p
// Written by Pete (El Supremo) Feb 2014 // Written by Pete (El Supremo) Feb 2014

+ 3
- 3
include/audio/synth_waveform.h View File

#ifndef synth_waveform_h_ #ifndef synth_waveform_h_
#define synth_waveform_h_ #define synth_waveform_h_


#include <Arduino.h>
#include "AudioStream.h"
#include "arm_math.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <core/arm_math.h>


// waveforms.c // waveforms.c
extern "C" { extern "C" {

+ 2
- 2
include/audio/synth_wavetable.h View File



#pragma once #pragma once


#include "Arduino.h"
#include "AudioStream.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include <math.h> #include <math.h>
#include <stdint.h> #include <stdint.h>



+ 3
- 3
include/audio/synth_whitenoise.h View File



#ifndef synth_whitenoise_h_ #ifndef synth_whitenoise_h_
#define synth_whitenoise_h_ #define synth_whitenoise_h_
#include "Arduino.h"
#include "AudioStream.h"
#include "utility/dspinst.h"
#include <core/Arduino.h>
#include <core/AudioStream.h>
#include "./utility/dspinst.h"


class AudioSynthNoiseWhite : public AudioStream class AudioSynthNoiseWhite : public AudioStream
{ {

+ 2
- 2
include/audio/utility/imxrt_hw.h View File



#define IMXRT_CACHE_ENABLED 2 // 0=disabled, 1=WT, 2= WB #define IMXRT_CACHE_ENABLED 2 // 0=disabled, 1=WT, 2= WB


#include <Arduino.h>
#include <imxrt.h>
#include <core/Arduino.h>
#include <core/imxrt.h>


void set_audioClock(int nfact, int32_t nmult, uint32_t ndiv, bool force = false); // sets PLL4 void set_audioClock(int nfact, int32_t nmult, uint32_t ndiv, bool force = false); // sets PLL4



+ 1
- 1
src/audio/Quantizer.cpp View File

/* /*
by Alexander Walch by Alexander Walch
*/ */
#include "Quantizer.h"
#include "audio/Quantizer.h"


#define SAMPLEINVALID(sample) (!isfinite(sample) || abs(sample) >= 1.2) //use only for floating point samples (\in [-1.,1.]) #define SAMPLEINVALID(sample) (!isfinite(sample) || abs(sample) >= 1.2) //use only for floating point samples (\in [-1.,1.])



+ 1
- 1
src/audio/Resampler.cpp View File

by Alexander Walch by Alexander Walch
*/ */


#include "Resampler.h"
#include "audio/Resampler.h"
#include <math.h> #include <math.h>


Resampler::Resampler(float attenuation, int32_t minHalfFilterLength, int32_t maxHalfFilterLength, StepAdaptionParameters settings): _targetAttenuation(attenuation) Resampler::Resampler(float attenuation, int32_t minHalfFilterLength, int32_t maxHalfFilterLength, StepAdaptionParameters settings): _targetAttenuation(attenuation)

+ 4
- 4
src/audio/analyze_fft1024.cpp View File

* THE SOFTWARE. * THE SOFTWARE.
*/ */


#include <Arduino.h>
#include "analyze_fft1024.h"
#include "sqrt_integer.h"
#include "utility/dspinst.h"
#include <core/Arduino.h>
#include "audio/analyze_fft1024.h"
#include "audio/utility/sqrt_integer.h"
#include "audio/utility/dspinst.h"




// 140312 - PAH - slightly faster copy // 140312 - PAH - slightly faster copy

+ 4
- 4
src/audio/analyze_fft256.cpp View File

* THE SOFTWARE. * THE SOFTWARE.
*/ */


#include <Arduino.h>
#include "analyze_fft256.h"
#include "sqrt_integer.h"
#include "utility/dspinst.h"
#include <core/Arduino.h>
#include "audio/analyze_fft256.h"
#include "audio/utility/sqrt_integer.h"
#include "audio/utility/dspinst.h"




// 140312 - PAH - slightly faster copy // 140312 - PAH - slightly faster copy

+ 4
- 4
src/audio/analyze_notefreq.cpp View File

* THE SOFTWARE. * THE SOFTWARE.
*/ */


#include <Arduino.h>
#include "analyze_notefreq.h"
#include "utility/dspinst.h"
#include "arm_math.h"
#include <core/Arduino.h>
#include "audio/analyze_notefreq.h"
#include "audio/utility/dspinst.h"
#include <core/arm_math.h>


#define HALF_BLOCKS AUDIO_GUITARTUNER_BLOCKS * 64 #define HALF_BLOCKS AUDIO_GUITARTUNER_BLOCKS * 64



+ 2
- 2
src/audio/analyze_peak.cpp View File

* THE SOFTWARE. * THE SOFTWARE.
*/ */


#include <Arduino.h>
#include "analyze_peak.h"
#include <core/Arduino.h>
#include "audio/analyze_peak.h"


void AudioAnalyzePeak::update(void) void AudioAnalyzePeak::update(void)
{ {

+ 2
- 2
src/audio/analyze_print.cpp View File

* THE SOFTWARE. * THE SOFTWARE.
*/ */


#include <Arduino.h>
#include "analyze_print.h"
#include <core/Arduino.h>
#include "audio/analyze_print.h"


#define STATE_IDLE 0 // doing nothing #define STATE_IDLE 0 // doing nothing
#define STATE_WAIT_TRIGGER 1 // looking for trigger condition #define STATE_WAIT_TRIGGER 1 // looking for trigger condition

+ 3
- 3
src/audio/analyze_rms.cpp View File

*/ */




#include <Arduino.h>
#include "analyze_rms.h"
#include "utility/dspinst.h"
#include <core/Arduino.h>
#include "audio/analyze_rms.h"
#include "audio/utility/dspinst.h"


void AudioAnalyzeRMS::update(void) void AudioAnalyzeRMS::update(void)
{ {

+ 3
- 3
src/audio/analyze_tonedetect.cpp View File

* THE SOFTWARE. * THE SOFTWARE.
*/ */


#include <Arduino.h>
#include "analyze_tonedetect.h"
#include "utility/dspinst.h"
#include <core/Arduino.h>
#include "audio/analyze_tonedetect.h"
#include "audio/utility/dspinst.h"


#if defined(__ARM_ARCH_7EM__) #if defined(__ARM_ARCH_7EM__)



+ 4
- 4
src/audio/async_input_spdif3.cpp View File

*/ */
#if defined(__IMXRT1052__) || defined(__IMXRT1062__) #if defined(__IMXRT1052__) || defined(__IMXRT1062__)


#include "async_input_spdif3.h"
#include "output_spdif3.h"
#include "audio/async_input_spdif3.h"
#include "audio/output_spdif3.h"


#include "biquad.h"
#include <utility/imxrt_hw.h>
#include "audio/biquad.h"
#include "audio/utility/imxrt_hw.h"
//Parameters //Parameters
namespace { namespace {
#define SPDIF_RX_BUFFER_LENGTH AUDIO_BLOCK_SAMPLES #define SPDIF_RX_BUFFER_LENGTH AUDIO_BLOCK_SAMPLES

+ 4
- 4
src/audio/control_ak4558.cpp View File

* Copyright 2015, Michele Perla * Copyright 2015, Michele Perla
* *
*/ */
#include <Arduino.h>
#include "control_ak4558.h"
#include "Wire.h"
#include <core/Arduino.h>
#include "audio/control_ak4558.h"
#include "wire/Wire.h"


void AudioControlAK4558::initConfig(void) void AudioControlAK4558::initConfig(void)
{ {

+ 3
- 3
src/audio/control_cs42448.cpp View File

* THE SOFTWARE. * THE SOFTWARE.
*/ */


#include <Arduino.h>
#include "control_cs42448.h"
#include "Wire.h"
#include <core/Arduino.h>
#include "audio/control_cs42448.h"
#include <wire/Wire.h>




#define CS42448_Chip_ID 0x01 #define CS42448_Chip_ID 0x01

+ 3
- 3
src/audio/control_cs4272.cpp View File

* THE SOFTWARE. * THE SOFTWARE.
*/ */


#include <Arduino.h>
#include "control_cs4272.h"
#include "Wire.h"
#include <core/Arduino.h>
#include "audio/control_cs4272.h"
#include "wire/Wire.h"


#define CS4272_ADDR 0x10 // TODO: need to double check #define CS4272_ADDR 0x10 // TODO: need to double check



+ 3
- 3
src/audio/control_sgtl5000.cpp View File

* THE SOFTWARE. * THE SOFTWARE.
*/ */


#include <Arduino.h>
#include "control_sgtl5000.h"
#include "Wire.h"
#include <core/Arduino.h>
#include "audio/control_sgtl5000.h"
#include "wire/Wire.h"


#define CHIP_ID 0x0000 #define CHIP_ID 0x0000
// 15:8 PARTID 0xA0 - 8 bit identifier for SGTL5000 // 15:8 PARTID 0xA0 - 8 bit identifier for SGTL5000

+ 2
- 2
src/audio/control_tlv320aic3206.cpp View File

License: MIT License. Use at your own risk. License: MIT License. Use at your own risk.
*/ */


#include "control_tlv320aic3206.h"
#include <Wire.h>
#include "audio/control_tlv320aic3206.h"
#include <wire/Wire.h>


//******************************** Constants *******************************// //******************************** Constants *******************************//



+ 0
- 0
src/audio/control_wm8731.cpp View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save