Skip to content

Commit f41588f

Browse files
committed
Documentation
1 parent 6216755 commit f41588f

File tree

3 files changed

+31
-21
lines changed

3 files changed

+31
-21
lines changed

src/AudioEffects/AudioEffectsSuite.h

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,19 @@ namespace audio_tools {
2727
typedef float effectsuite_t;
2828

2929
/**
30-
* Table of interpolation values as a 2D array indexed by
30+
* @brief Table of interpolation values as a 2D array indexed by
3131
* interpolationTable[pointIndex][alphaIndex]
3232
*/
3333
static effectsuite_t **interpolationTable = nullptr;
3434

35+
/**
36+
* @brief Base Class for Effects
37+
*
38+
*/
3539

3640
class EffectSuiteBase : public AudioEffect {
37-
/**
38-
* Main process block for applying audio effect
41+
/**
42+
* @brief Main process block for applying audio effect
3943
* @param inputSample The input audio sample for the effect to be applied to
4044
* @returns an audio sample as a effectsuite_t with effect applied
4145
*/
@@ -54,7 +58,7 @@ class EffectSuiteBase : public AudioEffect {
5458

5559

5660
/**
57-
* Class provides a wave table that can be populated with a number of
61+
* @brief Class provides a wave table that can be populated with a number of
5862
* preallocated waveforms. These can be used to generate audio in themselves or
5963
* to modulate The parameters of another effect. Class initialised with sample
6064
* rate.
@@ -79,7 +83,7 @@ class ModulationBaseClass {
7983
~ModulationBaseClass() = default;
8084

8185
/**
82-
* setup the class with a given sample rate. Basically reperforming the
86+
* @brief setup the class with a given sample rate. Basically reperforming the
8387
* constructor
8488
* @param extSampRate External sample rate
8589
*/
@@ -343,7 +347,7 @@ class ModulationBaseClass {
343347
};
344348

345349
/**
346-
* A Base class for delay based digital effects. Provides the basic methods
350+
* @brief A Base class for delay based digital effects. Provides the basic methods
347351
* that are shared amongst Flanger, Delay, Chorus and Phaser
348352
* @version 0.1
349353
* @see DelayEffectBase
@@ -578,7 +582,7 @@ class DelayEffectBase {
578582
};
579583

580584
/**
581-
* A Base class for filter based effects including methods for simple
585+
* @brief A Base class for filter based effects including methods for simple
582586
* high, low and band pass filtering
583587
* @see FilterEffectBase
584588
* @author Matthew Hamilton
@@ -977,7 +981,7 @@ class SimpleLPF : public FilterEffectBase {
977981
};
978982

979983
/**
980-
* Simple Chorus effect with a single delay voice and mono output Chorus is
984+
* @brief Simple Chorus effect with a single delay voice and mono output Chorus is
981985
* effective between 15 and 20 miliseconds delay of original audio. Requires the
982986
* sample rate when initialising.
983987
* @author Matthew Hamilton
@@ -1113,7 +1117,7 @@ class SimpleChorus : public DelayEffectBase,
11131117
};
11141118

11151119
/**
1116-
* Delay effect that filters the repeat delay
1120+
* @brief Delay effect that filters the repeat delay
11171121
* @author Matthew Hamilton
11181122
* @copyright MIT License
11191123
*/
@@ -1185,7 +1189,7 @@ class FilteredDelay : public DelayEffectBase, public FilterEffectBase {
11851189
};
11861190

11871191
/**
1188-
* Simple Delay effect consiting of a single tap delay with Effect Gain and
1192+
* @brief Simple Delay effect consiting of a single tap delay with Effect Gain and
11891193
* feed back controls
11901194
* Constructor requires internal delay in samples
11911195
* @see process
@@ -1357,7 +1361,7 @@ class SimpleDelay : public DelayEffectBase, public EffectSuiteBase {
13571361
};
13581362

13591363
/**
1360-
* Simple Flanger Effect Consistig of a single voice flanger
1364+
* @brief Simple Flanger Effect Consistig of a single voice flanger
13611365
* The flanger has an effective range between 0 and 15 miliseconds
13621366
* in this case dleay buffer should be set to sampleRate*3/200
13631367
* Constructor requires internal delay in samples

src/AudioEffects/STKEffects.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
namespace audio_tools {
1818

1919
/**
20-
* Use any effect from the STK framework: e.g. Chorus, Echo, FreeVerb, JCRev,
20+
* @brief Use any effect from the STK framework: e.g. Chorus, Echo, FreeVerb, JCRev,
2121
* PitShift... https://github.com/pschatzmann/Arduino-STK
2222
*
2323
* @author Phil Schatzmann
@@ -38,7 +38,7 @@ class STKEffect : public AudioEffect {
3838
};
3939

4040
/**
41-
* Chorus Effect
41+
* @brief Chorus Effect
4242
* @author Phil Schatzmann
4343
* @copyright GPLv3
4444
*/
@@ -54,7 +54,7 @@ class STKChorus : public AudioEffect, public stk::Chorus {
5454
};
5555

5656
/**
57-
* Echo Effect
57+
* @brief Echo Effect
5858
* @author Phil Schatzmann
5959
* @copyright GPLv3
6060
*/
@@ -71,7 +71,7 @@ class STKEcho : public AudioEffect, public stk::Echo {
7171
};
7272

7373
/**
74-
* Jezar at Dreampoint's FreeVerb, implemented in STK.
74+
* @brief Jezar at Dreampoint's FreeVerb, implemented in STK.
7575
* @author Phil Schatzmann
7676
* @copyright GPLv3
7777
*/
@@ -86,7 +86,7 @@ class STKFreeVerb : public AudioEffect, public stk::FreeVerb {
8686
};
8787

8888
/**
89-
* John Chowning's reverberator class.
89+
* @brief John Chowning's reverberator class.
9090
* @author Phil Schatzmann
9191
* @copyright GPLv3
9292
*/
@@ -102,7 +102,7 @@ class STKChowningReverb : public AudioEffect, public stk::JCRev {
102102
};
103103

104104
/**
105-
* CCRMA's NRev reverberator class.
105+
* @brief CCRMA's NRev reverberator class.
106106
* @author Phil Schatzmann
107107
* @copyright GPLv3
108108
*/
@@ -117,7 +117,7 @@ class STKNReverb : public AudioEffect, public stk::NRev {
117117
};
118118

119119
/**
120-
* Perry's simple reverberator class
120+
* @brief Perry's simple reverberator class
121121
* @author Phil Schatzmann
122122
* @copyright GPLv3
123123
*/
@@ -132,7 +132,7 @@ class STKPerryReverb : public AudioEffect, public stk::PRCRev {
132132
};
133133

134134
/**
135-
* Pitch shifter effect class based on the Lent algorithm
135+
* @brief Pitch shifter effect class based on the Lent algorithm
136136
* @author Phil Schatzmann
137137
* @copyright GPLv3
138138
*/
@@ -149,7 +149,7 @@ class STKLentPitShift : public AudioEffect, public stk::LentPitShift {
149149
};
150150

151151
/**
152-
* Pitch shifter effect class based on the Lent algorithm
152+
* @brief Pitch shifter effect class based on the Lent algorithm
153153
* @author Phil Schatzmann
154154
* @copyright GPLv3
155155
*/

src/AudioLibs/AudioA2DP.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ void a2dp_stream_sink_sound_data(const uint8_t* data, uint32_t len);
5757
enum A2DPStartLogic {StartWhenBufferFull, StartOnConnect};
5858
enum A2DPNoData {A2DPSilence, A2DPWhoosh};
5959

60-
// Config for A2DP Stream
60+
/**
61+
* @brief Configuration for A2DPStream
62+
* @author Phil Schatzmann
63+
* @copyright GPLv3
64+
*/
6165
class A2DPConfig {
6266
public:
6367
A2DPStartLogic startLogic = StartWhenBufferFull;
@@ -73,6 +77,8 @@ class A2DPConfig {
7377
* The data is in int16_t with 2 channels at 44100 hertz.
7478
*
7579
* Because we support only one instance the class is implemented as singleton!
80+
* @author Phil Schatzmann
81+
* @copyright GPLv3
7682
*/
7783
class A2DPStream : public AudioStream, public AudioBaseInfoSource {
7884

0 commit comments

Comments
 (0)