diff --git a/_audio_types_8h_source.html b/_audio_types_8h_source.html
index cb33199e8..7206c54e8 100644
--- a/_audio_types_8h_source.html
+++ b/_audio_types_8h_source.html
@@ -345,9 +345,9 @@
- 351 template <
typename From,
typename T>
-
-
+ 351 template <
typename T>
+
+ 353 float mv = maxValueT<T>();
356 }
else if (value < -mv){
@@ -387,7 +387,7 @@
396 template <
typename FromT,
typename ToT>
398 int64_t value1 = value;
- 399 return clipT<FromT,ToT>(value1 * maxValueT<ToT>() / maxValueT<FromT>());
+ 399 return clipT<ToT>(value1 * maxValueT<ToT>() / maxValueT<FromT>());
403 template <
typename FromT,
typename ToT>
@@ -395,7 +395,7 @@
405 float factor =
static_cast<float>(maxValueT<ToT>()) / maxValueT<FromT>();
406 float vol_factor = factor * vol;
407 for (
int j=0;j<samples;j++){
- 408 to[j] = clipT<FromT, ToT>(vol_factor * from[j]);
+ 408 to[j] = clipT<ToT>(vol_factor * from[j]);
@@ -523,9 +523,9 @@
-
+
diff --git a/_codec_l8_8h_source.html b/_codec_l8_8h_source.html
index f1b8ee7bf..fbbf4aaf5 100644
--- a/_codec_l8_8h_source.html
+++ b/_codec_l8_8h_source.html
@@ -133,7 +133,7 @@
- 96 return NumberConverter::clipT<int32_t, int16_t>(tmp * 258);
+ 96 return NumberConverter::clipT<int16_t>(tmp * 258);
99 virtual operator bool()
override {
return p_print!=
nullptr; }
@@ -188,7 +188,7 @@
168 operator bool()
override {
return is_open; }
170 int16_t convertSample(int16_t sample) {
- 171 int16_t tmp = NumberConverter::clipT<int16_t, int8_t>(sample / 258);
+ 171 int16_t tmp = NumberConverter::clipT<int8_t>(sample / 258);
diff --git a/_synthesizer_8h_source.html b/_synthesizer_8h_source.html
index 526fc6a88..b03b30c3e 100644
--- a/_synthesizer_8h_source.html
+++ b/_synthesizer_8h_source.html
@@ -259,7 +259,7 @@
- 227 result = NumberConverter::clipT<int, int16_t>(total / count);
+ 227 result = NumberConverter::clipT<int16_t>(total / count);
diff --git a/classaudio__tools_1_1_number_converter-members.html b/classaudio__tools_1_1_number_converter-members.html
index 7e4a9d461..0cde452da 100644
--- a/classaudio__tools_1_1_number_converter-members.html
+++ b/classaudio__tools_1_1_number_converter-members.html
@@ -73,7 +73,7 @@
This is the complete list of members for NumberConverter, including all inherited members.
clip(float value, int bits) | NumberConverter | inlinestatic |
- clipT(From value) | NumberConverter | inlinestatic |
+ clipT(float value) | NumberConverter | inlinestatic |
convert(FromT value) | NumberConverter | inlinestatic |
convertArray(FromT *from, ToT *to, int samples, float vol=1.0f) | NumberConverter | inlinestatic |
fromFloat(float value, int bits) | NumberConverter | inlinestatic |
diff --git a/classaudio__tools_1_1_number_converter.html b/classaudio__tools_1_1_number_converter.html
index d7476ade9..721948bc4 100644
--- a/classaudio__tools_1_1_number_converter.html
+++ b/classaudio__tools_1_1_number_converter.html
@@ -84,11 +84,11 @@
static int32_t clip (float value, int bits) |
| clips a value
|
|
-
-template<typename From , typename T > |
-static T | clipT (From value) |
- | Clips the value to avoid any over or underflows.
|
- |
+
+template<typename T > |
+static T | clipT (float value) |
+ | Clips the value to avoid any over or underflows.
|
+ |
template<typename FromT , typename ToT > |
static ToT | convert (FromT value) |
diff --git a/functions_c.html b/functions_c.html
index 05765e219..9b1c97516 100644
--- a/functions_c.html
+++ b/functions_c.html
@@ -154,7 +154,7 @@ - c -
, NumberConverter
- clipT()
-: NumberConverter
+: NumberConverter
- clipWave()
: ModulationBaseClass
diff --git a/functions_func_c.html b/functions_func_c.html
index dd643b855..45d9badb6 100644
--- a/functions_func_c.html
+++ b/functions_func_c.html
@@ -144,7 +144,7 @@
- c -
- clipT()
-: NumberConverter
+: NumberConverter
- clipWave()
: ModulationBaseClass
diff --git a/search/all_3.js b/search/all_3.js
index 179adce50..d3287b5fa 100644
--- a/search/all_3.js
+++ b/search/all_3.js
@@ -48,7 +48,7 @@ var searchData=
['clearstream_271',['clearStream',['../classaudio__tools_1_1_i2_s_driver_nano_b_l_e.html#a4bbe12ca3eea828ce375e3b95b941b12',1,'audio_tools::I2SDriverNanoBLE']]],
['client_272',['Client',['../classaudio__tools_1_1_client.html',1,'audio_tools']]],
['clip_273',['clip',['../classaudio__tools_1_1_audio_effect.html#af52bdd0b692ecf558d8bd97fac35bf6b',1,'audio_tools::AudioEffect::clip()'],['../classaudio__tools_1_1_number_converter.html#ae33e08bd59b9edec2c91101cbaa8c1df',1,'audio_tools::NumberConverter::clip(float value, int bits)']]],
- ['clipt_274',['clipT',['../classaudio__tools_1_1_number_converter.html#a4362cac4781628a59527a3b7fa069fa0',1,'audio_tools::NumberConverter']]],
+ ['clipt_274',['clipT',['../classaudio__tools_1_1_number_converter.html#a9b05fd540e9f1829c43659eef49e634f',1,'audio_tools::NumberConverter']]],
['clipwave_275',['clipWave',['../classaudio__tools_1_1_modulation_base_class.html#a356c93980a95afc0003df929cd432c6d',1,'audio_tools::ModulationBaseClass']]],
['cmsis_276',['CMSIS',['../group__fft-cmsis.html',1,'']]],
['codec_277',['codec',['../classaudio__tools_1_1_h_l_s_stream.html#a77ec75aeb09c8eb5bc54f469029f3da3',1,'audio_tools::HLSStream']]],
diff --git a/search/functions_3.js b/search/functions_3.js
index 54767aa95..cc4f383b7 100644
--- a/search/functions_3.js
+++ b/search/functions_3.js
@@ -23,7 +23,7 @@ var searchData=
['clearnotifyaudiochange_2471',['clearNotifyAudioChange',['../classaudio__tools_1_1_audio_info_source.html#affd15675a5e391c34cccefa7181354bb',1,'audio_tools::AudioInfoSource']]],
['clearstream_2472',['clearStream',['../classaudio__tools_1_1_i2_s_driver_nano_b_l_e.html#a4bbe12ca3eea828ce375e3b95b941b12',1,'audio_tools::I2SDriverNanoBLE']]],
['clip_2473',['clip',['../classaudio__tools_1_1_audio_effect.html#af52bdd0b692ecf558d8bd97fac35bf6b',1,'audio_tools::AudioEffect::clip()'],['../classaudio__tools_1_1_number_converter.html#ae33e08bd59b9edec2c91101cbaa8c1df',1,'audio_tools::NumberConverter::clip(float value, int bits)']]],
- ['clipt_2474',['clipT',['../classaudio__tools_1_1_number_converter.html#a4362cac4781628a59527a3b7fa069fa0',1,'audio_tools::NumberConverter']]],
+ ['clipt_2474',['clipT',['../classaudio__tools_1_1_number_converter.html#a9b05fd540e9f1829c43659eef49e634f',1,'audio_tools::NumberConverter']]],
['clipwave_2475',['clipWave',['../classaudio__tools_1_1_modulation_base_class.html#a356c93980a95afc0003df929cd432c6d',1,'audio_tools::ModulationBaseClass']]],
['codec_2476',['codec',['../classaudio__tools_1_1_h_l_s_stream.html#a77ec75aeb09c8eb5bc54f469029f3da3',1,'audio_tools::HLSStream']]],
['codesize_2477',['codeSize',['../classaudio__tools_1_1_s_b_c_encoder.html#a4acc2555ecc44e12e20eec6974631c70',1,'audio_tools::SBCEncoder']]],