Skip to content

Commit

Permalink
Add comments for external header files
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Sep 6, 2023
1 parent 4cee15b commit f377760
Show file tree
Hide file tree
Showing 81 changed files with 204 additions and 204 deletions.
2 changes: 1 addition & 1 deletion Audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#error "The Audio Library only works with 32 bit Teensy models. Teensy 2.0 is unsupported."
#endif

#include "DMAChannel.h"
#include <DMAChannel.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/DMAChannel.h
#if !defined(DMACHANNEL_HAS_BEGIN) || !defined(DMACHANNEL_HAS_BOOLEAN_CTOR)
#error "You need to update DMAChannel.h & DMAChannel.cpp"
#error "https://github.com/PaulStoffregen/cores/blob/master/teensy3/DMAChannel.h"
Expand Down
4 changes: 2 additions & 2 deletions Quantizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#ifndef quantizer_h_
#define quantizer_h_

#include "Arduino.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h

//#define DEBUG_QUANTIZER

Expand Down Expand Up @@ -61,4 +61,4 @@ float _factor;

};

#endif
#endif
4 changes: 2 additions & 2 deletions Resampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define resampler_h_


#include "Arduino.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
//#define DEBUG_RESAMPLER //activates debug output

#define MAX_FILTER_SAMPLES 40961 //=1024*20 +1
Expand Down Expand Up @@ -227,4 +227,4 @@ class Resampler {
float _targetAttenuation=100;
};

#endif
#endif
6 changes: 3 additions & 3 deletions analyze_fft1024.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
#ifndef analyze_fft1024_h_
#define analyze_fft1024_h_

#include "Arduino.h"
#include "AudioStream.h"
#include "arm_math.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h
#include <arm_math.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/arm_math.h

// windows.c
extern "C" {
Expand Down
6 changes: 3 additions & 3 deletions analyze_fft256.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
#ifndef analyze_fft256_h_
#define analyze_fft256_h_

#include "Arduino.h"
#include "AudioStream.h"
#include "arm_math.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h
#include <arm_math.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/arm_math.h

// windows.c
extern "C" {
Expand Down
4 changes: 2 additions & 2 deletions analyze_notefreq.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#ifndef AudioAnalyzeNoteFrequency_h_
#define AudioAnalyzeNoteFrequency_h_

#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h
/***********************************************************************
* Safe to adjust these values below *
* *
Expand Down
4 changes: 2 additions & 2 deletions analyze_peak.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#ifndef analyze_peakdetect_h_
#define analyze_peakdetect_h_

#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

class AudioAnalyzePeak : public AudioStream
{
Expand Down
4 changes: 2 additions & 2 deletions analyze_print.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#ifndef analyze_print_h_
#define analyze_print_h_

#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

class AudioAnalyzePrint : public AudioStream
{
Expand Down
4 changes: 2 additions & 2 deletions analyze_rms.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#ifndef analyze_rms_h_
#define analyze_rms_h_

#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

class AudioAnalyzeRMS : public AudioStream
{
Expand Down
4 changes: 2 additions & 2 deletions analyze_tonedetect.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#ifndef analyze_tonedetect_h_
#define analyze_tonedetect_h_

#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

class AudioAnalyzeToneDetect : public AudioStream
{
Expand Down
10 changes: 5 additions & 5 deletions async_input_spdif3.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
#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 <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h
#include <DMAChannel.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/DMAChannel.h
#include <arm_math.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/arm_math.h

//#define DEBUG_SPDIF_IN //activates debug output

Expand Down Expand Up @@ -85,4 +85,4 @@ class AsyncAudioInputSPDIF3 : public AudioStream
#endif
};

#endif
#endif
6 changes: 3 additions & 3 deletions biquad.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#ifndef biquad_coeffs_h_
#define biquad_coeffs_h_

#include "Arduino.h"
#include <arm_math.h>
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <arm_math.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/arm_math.h

enum class BiquadType {
LOW_PASS, HIGH_PASS, BAND_PASS, NOTCH, ALL_PASS, PEAKING, LOW_SHELF, HIGH_SHELF
Expand Down Expand Up @@ -201,4 +201,4 @@ void getCoefficients(T* coeffs, BiquadType type, double dbGain, double freq, dou
*(S->pState) = (*(S->pCoeffs+1) + *(S->pCoeffs+3)) * val + *(S->pState+1);
}

#endif
#endif
2 changes: 1 addition & 1 deletion control_sgtl5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#ifndef control_sgtl5000_h_
#define control_sgtl5000_h_

#include <AudioStream.h>
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h
#include "AudioControl.h"

// SGTL5000-specific defines for headphones
Expand Down
2 changes: 1 addition & 1 deletion control_tlv320aic3206.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
#ifndef control_tlv320aic3206_h_
#define control_tlv320aic3206_h_

#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include "AudioControl.h"
#include <Arduino.h>

//convenience names to use with inputSelect() to set whnch analog inputs to use
#define AIC3206_INPUT_IN1 1 //uses IN1
Expand Down
4 changes: 2 additions & 2 deletions effect_bitcrusher.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#ifndef effect_bitcrusher_h_
#define effect_bitcrusher_h_

#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

class AudioEffectBitcrusher : public AudioStream
{
Expand Down
4 changes: 2 additions & 2 deletions effect_chorus.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#ifndef effect_chorus_h_
#define effect_chorus_h_

#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

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

Expand Down
4 changes: 2 additions & 2 deletions effect_combine.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

#ifndef effect_digital_combine_h_
#define effect_digital_combine_h_
#include <Arduino.h>
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

class AudioEffectDigitalCombine : public AudioStream
{
Expand Down
4 changes: 2 additions & 2 deletions effect_delay.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

#ifndef effect_delay_h_
#define effect_delay_h_
#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h
#include "utility/dspinst.h"

#if defined(__IMXRT1062__)
Expand Down
4 changes: 2 additions & 2 deletions effect_delay_ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

#ifndef effect_delay_ext_h_
#define effect_delay_ext_h_
#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h
#include "spi_interrupt.h"

enum AudioEffectDelayMemoryType_t {
Expand Down
4 changes: 2 additions & 2 deletions effect_envelope.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

#ifndef effect_envelope_h_
#define effect_envelope_h_
#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h
#include "utility/dspinst.h"

#define SAMPLES_PER_MSEC (AUDIO_SAMPLE_RATE_EXACT/1000.0f)
Expand Down
4 changes: 2 additions & 2 deletions effect_fade.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#ifndef effect_fade_h_
#define effect_fade_h_

#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

class AudioEffectFade : public AudioStream
{
Expand Down
4 changes: 2 additions & 2 deletions effect_flange.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#ifndef effect_flange_h_
#define effect_flange_h_

#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

/******************************************************************/
// A u d i o E f f e c t F l a n g e
Expand Down
4 changes: 2 additions & 2 deletions effect_freeverb.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

#ifndef effect_freeverb_h_
#define effect_freeverb_h_
#include <Arduino.h>
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

class AudioEffectFreeverb : public AudioStream
{
Expand Down
2 changes: 1 addition & 1 deletion effect_granular.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* SOFTWARE.
*/

#include "AudioStream.h"
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

class AudioEffectGranular : public AudioStream
{
Expand Down
4 changes: 2 additions & 2 deletions effect_midside.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#ifndef effect_midside_decode_h_
#define effect_midside_decode_h_

#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

#include "utility/dspinst.h"

Expand Down
4 changes: 2 additions & 2 deletions effect_multiply.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

#ifndef effect_multiply_h_
#define effect_multiply_h_
#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h
#include "utility/dspinst.h"

class AudioEffectMultiply : public AudioStream
Expand Down
4 changes: 2 additions & 2 deletions effect_rectifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#ifndef effect_rectifier_h_
#define effect_rectifier_h_

#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

class AudioEffectRectifier: public AudioStream
{
Expand Down
2 changes: 1 addition & 1 deletion effect_reverb.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#ifndef effect_reverb_
#define effect_reverb_

#include "AudioStream.h"
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

#define APF1_BUF_LEN 600
#define APF2_BUF_LEN 1300
Expand Down
4 changes: 2 additions & 2 deletions effect_wavefolder.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#ifndef effect_wavefolder_h_
#define effect_wavefolder_h_

#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

class AudioEffectWaveFolder : public AudioStream
{
Expand Down
4 changes: 2 additions & 2 deletions effect_waveshaper.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#ifndef effect_waveshaper_h_
#define effect_waveshaper_h_

#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

class AudioEffectWaveshaper : public AudioStream
{
Expand Down
4 changes: 2 additions & 2 deletions filter_biquad.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#ifndef filter_biquad_h_
#define filter_biquad_h_

#include "Arduino.h"
#include "AudioStream.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

class AudioFilterBiquad : public AudioStream
{
Expand Down
6 changes: 3 additions & 3 deletions filter_fir.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
#ifndef filter_fir_h_
#define filter_fir_h_

#include "Arduino.h"
#include "AudioStream.h"
#include "arm_math.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h
#include <arm_math.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/arm_math.h

// Indicates that the code should just pass through the audio
// without any filtering (as opposed to doing nothing at all)
Expand Down
6 changes: 3 additions & 3 deletions filter_ladder.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
#ifndef filter_ladder_h_
#define filter_ladder_h_

#include "Arduino.h"
#include "AudioStream.h"
#include "arm_math.h"
#include <Arduino.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/Arduino.h
#include <AudioStream.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h
#include <arm_math.h> // github.com/PaulStoffregen/cores/blob/master/teensy4/arm_math.h

enum AudioFilterLadderInterpolation {
LADDER_FILTER_INTERPOLATION_LINEAR,
Expand Down
Loading

0 comments on commit f377760

Please sign in to comment.