From b72734300b6d8646b41acf42b86f241aadd5a7f0 Mon Sep 17 00:00:00 2001 From: pschatzmann Date: Sat, 7 Dec 2024 05:39:12 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20doxygen=20from=20@=20pschatzma?= =?UTF-8?q?nn/arduino-audio-tools@7aac18f610acb1ad0f14ef06dfe771a0eeb73aed?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _audio_effect_8h_source.html | 22 +- _audio_i_o_8h_source.html | 2 +- _buffers_8h_source.html | 4 +- _int24__3bytes__t_8h_source.html | 23 ++- _int24__4bytes__t_8h_source.html | 23 ++- _musical_notes_8h_source.html | 8 +- _pitch_shift_8h_source.html | 6 +- _resample_stream_8h_source.html | 4 +- _sound_generator_8h_source.html | 6 +- _volume_control_8h_source.html | 195 +++++++++--------- _volume_stream_8h_source.html | 4 +- classaudio__tools_1_1_delay.html | 8 +- ...saudio__tools_1_1_fast_sine_generator.html | 2 +- ...saudio__tools_1_1_saw_tooth_generator.html | 2 +- ...saudio__tools_1_1_sine_wave_generator.html | 2 +- ...udio__tools_1_1_square_wave_generator.html | 2 +- ..._tools_1_1_variable_speed_ring_buffer.html | 4 +- 17 files changed, 159 insertions(+), 158 deletions(-) diff --git a/_audio_effect_8h_source.html b/_audio_effect_8h_source.html index 634728cbf..3d786b626 100644 --- a/_audio_effect_8h_source.html +++ b/_audio_effect_8h_source.html @@ -287,20 +287,20 @@
273 
274  void setDepth(float value) {
275  depth = value;
-
276  if (depth > 1.0)
-
277  depth = 1.0;
-
278  if (depth < 0)
-
279  depth = 0.0;
+
276  if (depth > 1.0f)
+
277  depth = 1.0f;
+
278  if (depth < 0.0f)
+
279  depth = 0.0f;
280  }
281 
282  float getDepth() { return depth; }
283 
284  void setFeedback(float feed) {
285  feedback = feed;
-
286  if (feedback > 1.0)
-
287  feedback = 1.0;
-
288  if (feedback < 0)
-
289  feedback = 0.0;
+
286  if (feedback > 1.0f)
+
287  feedback = 1.0f;
+
288  if (feedback < 0.0f)
+
289  feedback = 0.0f;
290  }
291 
292  float getFeedback() { return feedback; }
@@ -320,7 +320,7 @@
306  int32_t delayed_value = buffer[delay_line_index];
307 
308  // Mix the above with current audio and write the results back to output
-
309  int32_t out = ((1.0 - depth) * input) + (depth * delayed_value);
+
309  int32_t out = ((1.0f - depth) * input) + (depth * delayed_value);
310 
311  // Update each delay line
312  buffer[delay_line_index] = clip(feedback * (delayed_value + input));
@@ -336,7 +336,7 @@
322 
323 protected:
324  Vector<effect_t> buffer{0};
-
325  float feedback = 0.0, duration = 0.0, sampleRate = 0.0, depth = 0.0;
+
325  float feedback = 0.0f, duration = 0.0f, sampleRate = 0.0f, depth = 0.0f;
326  size_t delay_len_samples = 0;
327  size_t delay_line_index = 0;
328 
@@ -487,7 +487,7 @@
509  }
510 
512  void setCompressionRatio(float compressionRatio){
-
513  if (compressionRatio<1.0){
+
513  if (compressionRatio < 1.0f){
514  gainreduce = compressionRatio;
515  }
516  recalculate();
diff --git a/_audio_i_o_8h_source.html b/_audio_i_o_8h_source.html index 21c991cc3..9ddf58198 100644 --- a/_audio_i_o_8h_source.html +++ b/_audio_i_o_8h_source.html @@ -114,7 +114,7 @@
54 
55  // we read half the necessary bytes
56  if (buffer.size() == 0) {
-
57  int size = (0.5 / p_transform->getByteFactor() * len);
+
57  int size = (0.5f / p_transform->getByteFactor() * len);
58  // process full samples/frames
59  size = size / 4 * 4;
60  LOGI("read size: %d", size);
diff --git a/_buffers_8h_source.html b/_buffers_8h_source.html index 9e1c86ca4..d81b7b19e 100644 --- a/_buffers_8h_source.html +++ b/_buffers_8h_source.html @@ -191,8 +191,8 @@
146 
148  virtual float levelPercent() {
149  // prevent div by 0.
-
150  if (size()==0) return 0.0;
-
151  return 100.0 * static_cast<float>(available()) / static_cast<float>(size());
+
150  if (size()==0) return 0.0f;
+
151  return 100.0f * static_cast<float>(available()) / static_cast<float>(size());
152  }
153 
154  protected:
diff --git a/_int24__3bytes__t_8h_source.html b/_int24__3bytes__t_8h_source.html index e2e037a80..28773ceba 100644 --- a/_int24__3bytes__t_8h_source.html +++ b/_int24__3bytes__t_8h_source.html @@ -190,17 +190,18 @@
132 } // namespace audio_tools
133 
134 #ifdef USE_TYPETRAITS
-
135 
-
136 namespace std {
-
137  template<> class numeric_limits<audio_tools::int24_3bytes_t> {
-
138  public:
-
139  static audio_tools::int24_3bytes_t lowest() {return audio_tools::int24_3bytes_t(-0x7FFFFF);};
-
140  static audio_tools::int24_3bytes_t min() {return audio_tools::int24_3bytes_t(-0x7FFFFF);};
-
141  static audio_tools::int24_3bytes_t max() {return audio_tools::int24_3bytes_t(0x7FFFFF);};
-
142  };
-
143 }
-
144 
-
145 #endif
+
135 #include <limits>
+
136 
+
137 namespace std {
+
138  template<> class numeric_limits<audio_tools::int24_3bytes_t> {
+
139  public:
+
140  static audio_tools::int24_3bytes_t lowest() {return audio_tools::int24_3bytes_t(-0x7FFFFF);};
+
141  static audio_tools::int24_3bytes_t min() {return audio_tools::int24_3bytes_t(-0x7FFFFF);};
+
142  static audio_tools::int24_3bytes_t max() {return audio_tools::int24_3bytes_t(0x7FFFFF);};
+
143  };
+
144 }
+
145 
+
146 #endif
24bit integer which is used for I2S sound processing. The values are really using 3 bytes....
Definition: Int24_3bytes_t.h:16
int32_t scale32() const
provides value between -2,147,483,647 and 2,147,483,647
Definition: Int24_3bytes_t.h:108
int toInt() const
Standard Conversion to Int.
Definition: Int24_3bytes_t.h:89
diff --git a/_int24__4bytes__t_8h_source.html b/_int24__4bytes__t_8h_source.html index 037027504..d0ee2f3c8 100644 --- a/_int24__4bytes__t_8h_source.html +++ b/_int24__4bytes__t_8h_source.html @@ -194,17 +194,18 @@
137 } // namespace audio_tools
138 
139 #ifdef USE_TYPETRAITS
-
140 
-
141 namespace std {
-
142  template<> class numeric_limits<audio_tools::int24_4bytes_t> {
-
143  public:
-
144  static audio_tools::int24_4bytes_t lowest() {return audio_tools::int24_4bytes_t(-0x7FFFFF);};
-
145  static audio_tools::int24_4bytes_t min() {return audio_tools::int24_4bytes_t(-0x7FFFFF);};
-
146  static audio_tools::int24_4bytes_t max() {return audio_tools::int24_4bytes_t(0x7FFFFF);};
-
147  };
-
148 }
-
149 
-
150 #endif
+
140 #include <limits>
+
141 
+
142 namespace std {
+
143  template<> class numeric_limits<audio_tools::int24_4bytes_t> {
+
144  public:
+
145  static audio_tools::int24_4bytes_t lowest() {return audio_tools::int24_4bytes_t(-0x7FFFFF);};
+
146  static audio_tools::int24_4bytes_t min() {return audio_tools::int24_4bytes_t(-0x7FFFFF);};
+
147  static audio_tools::int24_4bytes_t max() {return audio_tools::int24_4bytes_t(0x7FFFFF);};
+
148  };
+
149 }
+
150 
+
151 #endif
24bit integer which is used for I2S sound processing. The values are represented as int32_t,...
Definition: Int24_4bytes_t.h:16
int32_t scale32() const
provides value between -2,147,483,647 and 2,147,483,647
Definition: Int24_4bytes_t.h:115
void set(const int32_t &in)
values are clipped and shifted by 1 byte
Definition: Int24_4bytes_t.h:55
diff --git a/_musical_notes_8h_source.html b/_musical_notes_8h_source.html index a0b4632b7..3b591c072 100644 --- a/_musical_notes_8h_source.html +++ b/_musical_notes_8h_source.html @@ -250,16 +250,16 @@
198  }
199 
201  float midiNoteToFrequency(int x) const {
-
202  float a = 440; //frequency of A (coomon value is 440Hz)
-
203  return (a / 32) * pow(2, ((x - 9) / 12.0f));
+
202  float a = 440.0f; //frequency of A (coomon value is 440Hz)
+
203  return (a / 32.0f) * powf(2.0f, ((x - 9) / 12.0f));
204  }
205 
207  int frequencyToMidiNote(float freq) const {
-
208  return log(freq/440.0f)/log(2) * 12.0f + 69.0f;
+
208  return logf(freq/440.0f)/logf(2) * 12.0f + 69.0f;
209  }
210 
211  float stkNoteToFrequency(int noteNumber) const {
-
212  return 220.0f * pow( 2.0f, (noteNumber - 57.0f) / 12.0f );
+
212  return 220.0f * powf( 2.0f, (noteNumber - 57.0f) / 12.0f );
213  }
214 
215 protected:
diff --git a/_pitch_shift_8h_source.html b/_pitch_shift_8h_source.html index 53f059849..fbad5bec4 100644 --- a/_pitch_shift_8h_source.html +++ b/_pitch_shift_8h_source.html @@ -281,7 +281,7 @@
238  }
239 
240  T read() {
-
241  assert(read_increment != 0.0);
+
241  assert(read_increment != 0.0f);
242  T result = peek();
243  read_pos_float += read_increment;
244  handleReadWriteOverrun(last_value);
@@ -325,8 +325,8 @@
283 protected:
284  Vector<T> buffer{0};
285  int buffer_size;
-
286  float read_pos_float = 0.0;
-
287  float read_increment = 0.0;
+
286  float read_pos_float = 0.0f;
+
287  float read_increment = 0.0f;
288  int write_pos = 0;
289  // used to handle overruns:
290  T last_value = 0; // record last read value
diff --git a/_resample_stream_8h_source.html b/_resample_stream_8h_source.html index 9db2af193..f4bc37e59 100644 --- a/_resample_stream_8h_source.html +++ b/_resample_stream_8h_source.html @@ -238,7 +238,7 @@
194  }
195  }
196 
-
197  float getByteFactor() { return 1.0 / step_size; }
+
197  float getByteFactor() { return 1.0f / step_size; }
198 
199  protected:
200  Vector<uint8_t> last_samples{0};
@@ -263,7 +263,7 @@
221  size_t write(Print *p_out, const uint8_t *buffer, size_t bytes,
222  size_t &written) {
223  this->p_out = p_out;
-
224  if (step_size == 1.0) {
+
224  if (step_size == 1.0f) {
225  written = p_out->write(buffer, bytes);
226  return written;
227  }
diff --git a/_sound_generator_8h_source.html b/_sound_generator_8h_source.html index 744b75d51..f232d7265 100644 --- a/_sound_generator_8h_source.html +++ b/_sound_generator_8h_source.html @@ -249,7 +249,7 @@
213  float m_amplitude = 1.0f;
214  float m_deltaTime = 0.0f;
215  float m_phase = 0.0f;
-
216  const float double_Pi = PI * 2.0f;
+
216  const float double_Pi = 2.0f * PI;
217 
218  void logStatus() {
219  SoundGenerator<T>::info.logStatus();
@@ -272,8 +272,8 @@
243  T result = SineWaveGenerator<T>::m_amplitude * sine(angle);
244  SineWaveGenerator<T>::m_cycles +=
245  SineWaveGenerator<T>::m_frequency * SineWaveGenerator<T>::m_deltaTime;
-
246  if (SineWaveGenerator<T>::m_cycles > 1.0) {
-
247  SineWaveGenerator<T>::m_cycles -= 1.0;
+
246  if (SineWaveGenerator<T>::m_cycles > 1.0f) {
+
247  SineWaveGenerator<T>::m_cycles -= 1.0f;
248  }
249  return result;
250  }
diff --git a/_volume_control_8h_source.html b/_volume_control_8h_source.html index 4d8ab35b6..42cc96aac 100644 --- a/_volume_control_8h_source.html +++ b/_volume_control_8h_source.html @@ -104,109 +104,108 @@
53 
55  virtual float getVolumeFactor(float volume) {
56  if (p_vc==nullptr) return 1.0f; // prevent NPE
-
57  if (abs(volume-in)<0.01f){
+
57  if (fabs(volume-in)<0.01f){
58  return out;
-
59  } else {
-
60  in = volume;
-
61  out = p_vc->getVolumeFactor(volume);
-
62  return out;
-
63  }
-
64  }
-
65 
-
66  protected:
-
67  VolumeControl *p_vc=nullptr;
-
68  float in=1.0, out=1.0;
-
69 
-
70 };
+
59  }
+
60  in = volume;
+
61  out = p_vc->getVolumeFactor(volume);
+
62  return out;
+
63  }
+
64 
+
65  protected:
+
66  VolumeControl *p_vc=nullptr;
+
67  float in=1.0, out=1.0;
+
68 
+
69 };
+
70 
71 
-
72 
-
81 class LogarithmicVolumeControl : public VolumeControl {
-
82  public:
-
83  LogarithmicVolumeControl(float ym=0.1){
-
84  this->ym = ym;
-
85  }
-
86 
-
87  // provides a factor in the range of 0.0 to 1.0
-
88  virtual float getVolumeFactor(float input) {
-
89  float b = pow(((1/ym)-1), 2);
-
90  float a = 1.0f / (b - 1.0f);
-
91  float volumeFactor = pow(b,input) * a - a;
-
92  return limit(volumeFactor);
-
93  }
-
94 
-
95  protected:
-
96  float ym;
-
97 };
-
98 
-
105 class ExponentialVolumeControl : public VolumeControl {
-
106  public:
-
107  // provides a factor in the range of 0.0 to 1.0
-
108  virtual float getVolumeFactor(float volume) {
-
109  float volumeFactor = pow(2.0, volume) - 1.0;
-
110  return limit(volumeFactor);
-
111  }
-
112 };
-
113 
-
123 class SimulatedAudioPot : public VolumeControl {
-
124  public:
-
125  SimulatedAudioPot(float x=0.5, float y=0.1){
-
126  this->x = x;
-
127  this->y = y;
-
128  }
-
129  virtual float getVolumeFactor(float volume) {
-
130  float result = 0;
-
131  if (volume<=x){
-
132  result = mapT<float>(volume, 0.0, x, 0, y );
-
133  } else {
-
134  result = mapT<float>(volume, x, 1.0, y, 1.0);
-
135  }
-
136  return limit(result);
-
137  }
-
138  protected:
-
139  float x, y;
-
140 };
-
141 
-
149 class LinearVolumeControl : public VolumeControl {
-
150  public:
-
151  LinearVolumeControl(bool allowBoost=false){
-
152  is_limited = !allowBoost;
-
153  }
-
154  // provides a factor in the range of 0.0 to 1.0
-
155  virtual float getVolumeFactor(float volume) {
-
156  return is_limited ? limit(volume) : volume;
-
157  }
-
158  protected:
-
159  bool is_limited;
-
160 };
+
80 class LogarithmicVolumeControl : public VolumeControl {
+
81  public:
+
82  LogarithmicVolumeControl(float ym=0.1){
+
83  this->ym = ym;
+
84  }
+
85 
+
86  // provides a factor in the range of 0.0 to 1.0
+
87  virtual float getVolumeFactor(float input) {
+
88  float b = powf(((1/ym)-1), 2);
+
89  float a = 1.0f / (b - 1.0f);
+
90  float volumeFactor = powf(b,input) * a - a;
+
91  return limit(volumeFactor);
+
92  }
+
93 
+
94  protected:
+
95  float ym;
+
96 };
+
97 
+
104 class ExponentialVolumeControl : public VolumeControl {
+
105  public:
+
106  // provides a factor in the range of 0.0 to 1.0
+
107  virtual float getVolumeFactor(float volume) {
+
108  float volumeFactor = pow(2.0, volume) - 1.0;
+
109  return limit(volumeFactor);
+
110  }
+
111 };
+
112 
+
122 class SimulatedAudioPot : public VolumeControl {
+
123  public:
+
124  SimulatedAudioPot(float x=0.5, float y=0.1){
+
125  this->x = x;
+
126  this->y = y;
+
127  }
+
128  virtual float getVolumeFactor(float volume) {
+
129  float result = 0;
+
130  if (volume<=x){
+
131  result = mapT<float>(volume, 0.0, x, 0, y );
+
132  } else {
+
133  result = mapT<float>(volume, x, 1.0, y, 1.0);
+
134  }
+
135  return limit(result);
+
136  }
+
137  protected:
+
138  float x, y;
+
139 };
+
140 
+
148 class LinearVolumeControl : public VolumeControl {
+
149  public:
+
150  LinearVolumeControl(bool allowBoost=false){
+
151  is_limited = !allowBoost;
+
152  }
+
153  // provides a factor in the range of 0.0 to 1.0
+
154  virtual float getVolumeFactor(float volume) {
+
155  return is_limited ? limit(volume) : volume;
+
156  }
+
157  protected:
+
158  bool is_limited;
+
159 };
+
160 
161 
-
162 
-
169 class CallbackVolumeControl : public VolumeControl {
-
170  public:
-
171  CallbackVolumeControl(float(*cb)(float in)){
-
172  callback = cb;
-
173  }
-
174  // provides a factor in the range of 0.0 to 1.0
-
175  virtual float getVolumeFactor(float volume) {
-
176  return limit(callback(volume));
-
177  }
-
178  protected:
-
179  float (*callback)(float in) = nullptr;
-
180 
-
181 };
-
182 
-
183 } // namespace
+
168 class CallbackVolumeControl : public VolumeControl {
+
169  public:
+
170  CallbackVolumeControl(float(*cb)(float in)){
+
171  callback = cb;
+
172  }
+
173  // provides a factor in the range of 0.0 to 1.0
+
174  virtual float getVolumeFactor(float volume) {
+
175  return limit(callback(volume));
+
176  }
+
177  protected:
+
178  float (*callback)(float in) = nullptr;
+
179 
+
180 };
+
181 
+
182 } // namespace
In order to optimize the processing time we cache the last input & factor and recalculate the new fac...
Definition: VolumeControl.h:40
virtual float getVolumeFactor(float volume)
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
Definition: VolumeControl.h:55
-
Provide the volume function as callback method: This is easy to use e.g together with a lamda functio...
Definition: VolumeControl.h:169
-
virtual float getVolumeFactor(float volume)
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
Definition: VolumeControl.h:175
-
Simple exponentional volume control using the formula pow(2.0, input) - 1.0;.
Definition: VolumeControl.h:105
-
virtual float getVolumeFactor(float volume)
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
Definition: VolumeControl.h:108
-
The simplest possible implementation of a VolumeControl: The input = output which describes a linear ...
Definition: VolumeControl.h:149
-
virtual float getVolumeFactor(float volume)
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
Definition: VolumeControl.h:155
-
Parametric Logarithmic volume control. Using the formula pow(b,input) * a - a, where b is b = pow(((1...
Definition: VolumeControl.h:81
-
virtual float getVolumeFactor(float input)
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
Definition: VolumeControl.h:88
-
Simple simulated audio pot volume control inspired by https://eepower.com/resistor-guide/resistor-typ...
Definition: VolumeControl.h:123
-
virtual float getVolumeFactor(float volume)
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
Definition: VolumeControl.h:129
+
Provide the volume function as callback method: This is easy to use e.g together with a lamda functio...
Definition: VolumeControl.h:168
+
virtual float getVolumeFactor(float volume)
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
Definition: VolumeControl.h:174
+
Simple exponentional volume control using the formula pow(2.0, input) - 1.0;.
Definition: VolumeControl.h:104
+
virtual float getVolumeFactor(float volume)
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
Definition: VolumeControl.h:107
+
The simplest possible implementation of a VolumeControl: The input = output which describes a linear ...
Definition: VolumeControl.h:148
+
virtual float getVolumeFactor(float volume)
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
Definition: VolumeControl.h:154
+
Parametric Logarithmic volume control. Using the formula pow(b,input) * a - a, where b is b = pow(((1...
Definition: VolumeControl.h:80
+
virtual float getVolumeFactor(float input)
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
Definition: VolumeControl.h:87
+
Simple simulated audio pot volume control inspired by https://eepower.com/resistor-guide/resistor-typ...
Definition: VolumeControl.h:122
+
virtual float getVolumeFactor(float volume)
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
Definition: VolumeControl.h:128
Abstract class for handling of the linear input volume to determine the multiplication factor which s...
Definition: VolumeControl.h:17
virtual float getVolumeFactor(float volume)=0
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).
virtual float limit(float in)
limits the output to the range of 0 to 1.0
Definition: VolumeControl.h:25
diff --git a/_volume_stream_8h_source.html b/_volume_stream_8h_source.html index 6903863e4..ea0328ca8 100644 --- a/_volume_stream_8h_source.html +++ b/_volume_stream_8h_source.html @@ -226,7 +226,7 @@
187  }
188 
190  bool setVolume(float vol, int channel){
-
191  if ((vol > 1.0 && !info.allow_boost) || vol < 0) {
+
191  if ((vol > 1.0f && !info.allow_boost) || vol < 0.0f) {
192  LOGE("Invalid volume: %f", vol);
193  return false;
194  }
@@ -413,7 +413,7 @@
virtual void addNotifyAudioChange(AudioInfoSupport &bi)
Adds target to be notified about audio changes.
Definition: AudioTypes.h:162
Abstract Audio Ouptut class.
Definition: AudioOutput.h:22
Base class for all Audio Streams. It support the boolean operator to test if the object is ready with...
Definition: BaseStream.h:109
-
The simplest possible implementation of a VolumeControl: The input = output which describes a linear ...
Definition: VolumeControl.h:149
+
The simplest possible implementation of a VolumeControl: The input = output which describes a linear ...
Definition: VolumeControl.h:148
Abstract class: Objects can be put into a pipleline.
Definition: AudioStreams.h:69
static int64_t maxValue(int value_bits_per_sample)
provides the biggest number for the indicated number of bits
Definition: AudioTypes.h:317
Definition: NoArduino.h:58
diff --git a/classaudio__tools_1_1_delay.html b/classaudio__tools_1_1_delay.html index a398746e9..2109d920d 100644 --- a/classaudio__tools_1_1_delay.html +++ b/classaudio__tools_1_1_delay.html @@ -174,19 +174,19 @@ size_t delay_line_index = 0   -float depth = 0.0 +float depth = 0.0f   -float duration = 0.0 +float duration = 0.0f   -float feedback = 0.0 +float feedback = 0.0f   int id_value = -1   -float sampleRate = 0.0 +float sampleRate = 0.0f  

Detailed Description

diff --git a/classaudio__tools_1_1_fast_sine_generator.html b/classaudio__tools_1_1_fast_sine_generator.html index f3570129a..474eff341 100644 --- a/classaudio__tools_1_1_fast_sine_generator.html +++ b/classaudio__tools_1_1_fast_sine_generator.html @@ -167,7 +167,7 @@ bool activeWarningIssued = false   -const float double_Pi = PI * 2.0f +const float double_Pi = 2.0f * PI   AudioInfo info diff --git a/classaudio__tools_1_1_saw_tooth_generator.html b/classaudio__tools_1_1_saw_tooth_generator.html index fa925b2f1..b8419b1af 100644 --- a/classaudio__tools_1_1_saw_tooth_generator.html +++ b/classaudio__tools_1_1_saw_tooth_generator.html @@ -166,7 +166,7 @@ bool activeWarningIssued = false   -const float double_Pi = PI * 2.0f +const float double_Pi = 2.0f * PI   AudioInfo info diff --git a/classaudio__tools_1_1_sine_wave_generator.html b/classaudio__tools_1_1_sine_wave_generator.html index e36315e3d..c5083cc12 100644 --- a/classaudio__tools_1_1_sine_wave_generator.html +++ b/classaudio__tools_1_1_sine_wave_generator.html @@ -165,7 +165,7 @@ bool activeWarningIssued = false   -const float double_Pi = PI * 2.0f +const float double_Pi = 2.0f * PI   AudioInfo info diff --git a/classaudio__tools_1_1_square_wave_generator.html b/classaudio__tools_1_1_square_wave_generator.html index f10a8096f..112d5898b 100644 --- a/classaudio__tools_1_1_square_wave_generator.html +++ b/classaudio__tools_1_1_square_wave_generator.html @@ -170,7 +170,7 @@ bool activeWarningIssued = false   -const float double_Pi = PI * 2.0f +const float double_Pi = 2.0f * PI   AudioInfo info diff --git a/classaudio__tools_1_1_variable_speed_ring_buffer.html b/classaudio__tools_1_1_variable_speed_ring_buffer.html index b1040e9f3..e3aa97913 100644 --- a/classaudio__tools_1_1_variable_speed_ring_buffer.html +++ b/classaudio__tools_1_1_variable_speed_ring_buffer.html @@ -207,10 +207,10 @@ friend NBuffer< T >   -float read_increment = 0.0 +float read_increment = 0.0f   -float read_pos_float = 0.0 +float read_pos_float = 0.0f   int write_pos = 0